SET IDENTITY_INSERT [Reporting_ReportGraph] ON
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (145, N'GraphDayFileDownloads', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 55, N'', N'{$reports_general.label_days$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext></querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'db6106a1-8b34-411c-93b7-e04a1c9923c5', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (146, N'GraphMonthFileDownloads', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 56, N'', N'{$reports_general.label_months$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '6c560c49-e1d8-4e62-9079-bb11c97d6a88', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (147, N'GraphYearFileDownloads', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 57, N'', N'{$reports_general.label_years$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><querynorecordtext>No data found</querynorecordtext><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '3c6a1506-4f3b-4d03-8d76-b21fc4733e9a', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (148, N'GraphHourFileDownloads', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 58, N'', N'{$reports_general.label_hours$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '18dc54ce-39ea-4d3f-8eb7-840db48b7210', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (149, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 59, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor>#3570c0</seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'a3f753a8-78e0-4924-93e1-ec72c78adc56', '20110912 09:11:15', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (150, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 60, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'd1f354c6-8a87-48de-82cc-ab596bf3f7d6', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (151, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema|(user)administrator|(hash)0377007db0cb66494363eba2ee32989bab3f4858d04ab80a88c15d32c20264da%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema|(user)administrator|(hash)0377007db0cb66494363eba2ee32989bab3f4858d04ab80a88c15d32c20264da%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName) AND ##WHERE##
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 61, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><yaxisformat></yaxisformat><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '72a50baf-033f-4626-a0c5-f397f1ce19c7', '20110916 15:39:24', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (152, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)AND HitsStartTime >= @FromDate AND HitsEndTime <= @ToDate
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 62, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext></querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '7cb0c307-688f-4066-aa71-4a57e658f7a8', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (153, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 63, N'', N'{$reports_general.label_days$}', N'{$reports_pagenotfound.label_numoffaults$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '257a811a-aa60-4ce8-a2ac-8bdd19f4c03e', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (154, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 64, N'', N'{$reports_general.label_months$}', N'{$reports_pagenotfound.label_numoffaults$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '374ec976-2161-4cd2-a0b6-ebb7c6fbf6d8', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (155, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 65, N'', N'{$reports_general.label_years$}', N'{$reports_pagenotfound.label_numoffaults$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><chartareaborderstyle>Solid</chartareaborderstyle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><legendposition>None</legendposition><xaxislabelfont></xaxislabelfont><rotatex></rotatex><rotatey></rotatey><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'd671eeb9-d52b-4387-9cd2-2f42011363e1', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (156, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 66, N'', N'{$reports_general.label_hours$}', N'{$reports_pagenotfound.label_numoffaults$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'a1933df5-9ace-455c-a1a9-aa3c738321f5', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (157, N'GraphDayVisitors', N'visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))  
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 71, N'', N'{$reports_general.label_days$}', N'{$reports_visits.label_numofvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><xaxislabelfont></xaxislabelfont><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><seriesbordersize>2</seriesbordersize><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '6d273871-b6ee-4873-8223-efd32a9f67c7', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (158, N'GraphDayNewReturnVisitors', N'new and returning visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_DayHits WHERE (StatisticsSiteID =
@CMSContextCurrentSiteID) AND ((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 71, N'{$reports_visits.label_newandreturningvisitors$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '9ba5a349-19b2-4182-acbe-a62fdb5a8636', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (159, N'GraphMonthVisitors', N'visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE 
  (StatisticsSiteID = @CMSContextCurrentSiteID)  AND
  ((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))  
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 72, N'', N'{$reports_general.label_months$}', N'{$reports_visits.label_numofvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext></querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '22a3e2fe-0360-415b-ada9-1e1d726205c0', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (160, N'GraphMonthNewReturnVisitors', N'new and returning visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_MonthHits WHERE (StatisticsSiteID =
@CMSContextCurrentSiteID) AND ((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 72, N'{$reports_visits.label_newandreturningvisitors$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '8c28e0ee-6518-45f4-80e1-9db5769af627', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (161, N'GraphYearVisitors', N'visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN 
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))  
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 73, N'', N'{$reports_general.label_years$}', N'{$reports_visits.label_numofvisits$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisformat></yaxisformat><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '37e8390a-fb47-4f61-9e7f-e82bb5146a69', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (162, N'GraphYearNewReturnVisitors', N'new and returning visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name, 
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_YearHits WHERE (StatisticsSiteID = 
@CMSContextCurrentSiteID) AND ((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) 
 GROUP BY StatisticsCode', 0, N'pie', 73, N'{$reports_visits.label_newandreturningvisitors$}', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '3c792e6f-fb55-4b19-8c32-42bba7e185c2', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (163, N'GraphHourVisitors', N'visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))  
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 74, N'', N'{$reports_general.label_hours$}', N'{$reports_visits.label_numofvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '263bc324-ad0c-4535-876d-bbac99ab903f', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (164, N'GraphHourNewReturnVisitors', N'new and returning visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_HourHits WHERE (StatisticsSiteID =
@CMSContextCurrentSiteID) AND ((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 74, N'{$reports_visits.label_newandreturningvisitors$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '4e398ffe-44a5-453b-872c-e51d0d370b83', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (171, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''day''', 0, N'line', 86, N'', N'{$reports_general.label_days$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8d405e91-3d9f-474a-8fb1-d0ed6803ac74', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (172, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_DayHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 86, N'{$reports_filedownloadscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '8546cc7c-c135-49c7-85e3-6be4fc57b5e0', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (173, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''month''', 0, N'line', 87, N'', N'{$reports_general.label_months$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '46a16014-15d0-4cb4-99e5-5adda988edb4', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (174, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_MonthHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 87, N'{$reports_filedownloadscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'b0a6dc65-afb5-4b16-823b-9eb1a77d6b26', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (175, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''year''', 0, N'line', 88, N'', N'{$reports_general.label_years$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '595a90f7-0ddb-4e98-89fd-17d2572f375e', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (176, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_YearHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 88, N'{$reports_filedownloadscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><chartareaborderstyle>Solid</chartareaborderstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '22c20d43-ca15-46ba-8ef5-67a4cf0b22a3', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (177, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''hour''', 0, N'line', 89, N'', N'{$reports_general.label_hours$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'cbb64120-03c3-4f5f-bbb0-44f8eb76c9b3', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (178, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_HourHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 89, N'{$reports_filedownloadscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '7f5832e2-aa3a-407e-9819-c1c6ac424dc2', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (179, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''day''', 0, N'line', 90, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>3</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><xaxistitlecolor>#000000</xaxistitlecolor><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><querynorecordtext></querynorecordtext><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '39170999-1a43-4254-be68-7889760c717e', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (180, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_DayHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 90, N'{$reports_pageviewscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '0349bf51-ad89-430c-b599-4c9cbf4520c3', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (181, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''month''', 0, N'line', 91, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'd43d5146-44b8-46cb-b707-cdd3c72e69bd', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (182, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_MonthHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 91, N'{$reports_pageviewscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '992c99d2-1983-4fd6-acaa-59505c740a62', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (183, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''year''', 0, N'line', 92, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'c5804ad1-7cd4-44c9-b309-3e20ddf71479', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (184, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_YearHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 92, N'{$reports_pageviewscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '8d00b358-2f3b-4a64-a4f5-028e02b7e347', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (185, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''hour''', 0, N'line', 93, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'fcf96a0a-f51b-437b-a149-2b4d28f534e3', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (186, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_HourHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 93, N'{$reports_pageviewscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '74772fbe-4835-4aea-a266-d903594e2b32', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (187, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)           
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName) AND (StatisticsSiteID = CampaignSiteID) AND 
  (@CampaignName IS NULL OR @CampaignName IN ('''',CampaignName))
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 94, N'', N'{$reports_general.label_days$}', N'{$reports_campaign.label_num$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '7459346d-e455-4944-9a3b-04f92a5ecb4d', '20110921 17:48:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (188, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)           
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName) AND (StatisticsSiteID = CampaignSiteID) AND 
  (@CampaignName IS NULL OR @CampaignName IN ('''',CampaignName))
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 95, N'', N'{$reports_general.label_months$}', N'{$reports_campaign.label_num$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '28d6ef49-a8cd-4c2f-8e80-ab68a1846b69', '20110921 17:48:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (189, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)           
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName) AND (StatisticsSiteID = CampaignSiteID) AND 
  (@CampaignName IS NULL OR @CampaignName IN ('''',CampaignName))
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 96, N'', N'{$reports_general.label_years$}', N'{$reports_campaign.label_num$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><yaxisformat></yaxisformat><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '68ce06e8-15b2-49fe-9585-b4088b8b092a', '20110921 17:48:36', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (190, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)           
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName) AND (StatisticsSiteID = CampaignSiteID) AND 
  (@CampaignName IS NULL OR @CampaignName IN ('''',CampaignName))
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 97, N'', N'{$reports_general.label_hours$}', N'{$reports_campaign.label_num$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext></querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '27da4e41-2deb-4f03-9f74-d4d4e7fbb2ce', '20110921 17:48:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (191, N'GraphDayConversion', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 98, N'', N'{$reports_general.label_days$}', N'{$reports_conversion.label_num$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxistitlecolor>#000000</xaxistitlecolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><legendposition>None</legendposition><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><querynorecordtext></querynorecordtext><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '330514c1-2b53-4086-bf26-6fae557d8a89', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (192, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 99, N'', N'{$reports_general.label_months$}', N'{$reports_conversion.label_num$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '4ac711b2-afd1-418a-8803-db686a9466fd', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (193, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 100, N'', N'{$reports_general.label_years$}', N'{$reports_conversion.label_num$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><enableexport>True</enableexport><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'c7fc7ab7-0eb0-49be-8117-aebe8f6f37e2', '20110818 20:32:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (194, N'GraphHourConversion', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 101, N'', N'{$reports_general.label_hours$}', N'{$reports_conversion.label_num$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxistitlecolor>#000000</xaxistitlecolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><legendposition>None</legendposition><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><querynorecordtext></querynorecordtext><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '5a53e5c7-8e6b-4cd3-ab67-37257704d6af', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (201, N'GraphDayBrowserType', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_DayHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 110, N'', N'', N'', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'e2c1cf6c-c36e-4bd4-9983-38306d9c0e65', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (202, N'GraphHourBrowserType', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_HourHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 111, N'', N'', N'', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'd542aa16-7a34-4f62-9d2d-ffe2790a9ed3', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (203, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_MonthHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 112, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'f245327b-c42d-452d-89f2-9f38e4038d59', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (204, N'GraphYearBrowserType', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectName , SUM(HitsCount)  FROM
Analytics_Statistics, Analytics_YearHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 113, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>20</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize></seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '638703d8-25ae-43be-9739-633c1cc805d0', '20110809 10:23:49', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (235, N'GraphDayCountries', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_DayHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 126, N'', N'', N'', 700, 500, 100, N'<customdata><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '3dcf156b-9da0-49ff-8f4c-64c80e71a41c', '20110818 16:16:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (236, N'GraphHourCountries', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_HourHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 128, N'', N'', N'', 700, 500, 100, N'<customdata><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'fd214795-6023-42c3-a54c-e40c4c609ff0', '20110818 16:17:13', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (237, N'GraphMonthCountries', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_MonthHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 129, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '45ea0ba6-f5e3-4cf8-9986-7525c5eb9998', '20110818 16:17:42', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (274, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN 
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND 
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 146, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofRegisteredUsers$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '308b10b1-e7f3-45e3-8733-ce906f524dec', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (277, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN 
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 149, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofRegisteredUsers$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'e8e03c30-efa0-43c7-8fc3-f7abaaf31faa', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (312, N'ForumPostsByMonthGraph', N'Forum posts by month graph', N'SELECT  Cast(Year(PostTime) AS nvarchar(20))+'' '' + Cast( Month(PostTime) AS nvarchar(20)) AS ''Month'', COUNT(*) as ''Number of posts'' FROM Forums_ForumPost 
WHERE PostForumID IN (SELECT ForumID FROM Forums_Forum WHERE ForumGroupID IN (SELECT GroupID FROM Forums_ForumGroup WHERE GroupSiteID = @CMSContextCurrentSiteID)) AND DateAdd(month, -1 * @LastXmonths, GetDate()) < PostTime
GROUP BY  Year(PostTime), Month(PostTime) ORDER BY Year(PostTime), Month(PostTime)', 0, N'bar', 168, N'{$Forums.NewPostsByMonth$} - {%CMSContextCurrentSiteName%}', N'{$Forums.Months$}', N'{$Forums.NumberOfPosts$}', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>60</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>None</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><legendposition>None</legendposition><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><xaxisfont>Arial;bold;11;;</xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip></seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No posts found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '7745e64c-df0c-4d3e-b0f1-6cb45a5e0d79', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (313, N'ForumPostsByYearGraph', N'Forum posts by year graph', N'SELECT Year(PostTime) AS ''Year'', COUNT(*) as ''Number of posts'' FROM Forums_ForumPost 
WHERE PostForumID IN (SELECT ForumID FROM Forums_Forum WHERE ForumGroupID IN 
(SELECT GroupID FROM Forums_ForumGroup WHERE GroupSiteID = @CMSContextCurrentSiteID)) AND 
DateAdd(YEAR, -1 * @LastXyears, GetDate()) < PostTime
GROUP BY  Year(PostTime) ORDER BY Year(PostTime)', 0, N'bar', 169, N'{$Forums.NewPostsByYear$} - {%CMSContextCurrentSiteName%}', N'{$Forums.Years$}', N'{$Forums.NumberOfPosts$}', 800, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>60</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip></seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No posts found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ae5287eb-3b29-4a39-8411-00523be8abd7', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (314, N'NewPostsByWeekGraph', N'New posts by week graph', N'SELECT   Cast(Year(PostTime) AS nvarchar(20))+'' '' + Cast( DatePart(week,PostTime) AS nvarchar(20)) AS ''Month'', COUNT(*) as ''Number of posts'' FROM Forums_ForumPost 
WHERE PostForumID IN (SELECT ForumID FROM Forums_Forum WHERE ForumGroupID IN (SELECT GroupID FROM Forums_ForumGroup WHERE GroupSiteID = @CMSContextCurrentSiteID)) AND DateAdd(week, -1 * @LastXweeks, GetDate()) < PostTime
GROUP BY  Year(PostTime), DatePart(week,PostTime) ORDER BY Year(PostTime), DatePart(week,PostTime)', 0, N'bar', 170, N'{$Forums.NewPostsByWeek$} - {%CMSContextCurrentSiteName%}', N'{$Forums.Weeks$}', N'{$Forums.NumberOfPosts$}', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>60</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>None</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><legendposition>None</legendposition><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><xaxisfont>Arial;bold;11;;</xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip></seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No posts found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'ce29ccef-fb9a-4e97-9830-553cf947f758', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (315, N'NewPostsByDayGraph', N'New posts by day graph', N'SELECT   Cast(Year(PostTime) AS nvarchar(20))+'' '' + Cast( Month(PostTime) AS nvarchar(20))+'' '' + Cast( Day(PostTime) AS nvarchar(20)) AS ''Day'', COUNT(*) as ''Number of posts'' FROM Forums_ForumPost 
WHERE PostForumID IN (SELECT ForumID FROM Forums_Forum WHERE ForumGroupID IN (SELECT GroupID FROM Forums_ForumGroup WHERE GroupSiteID = @CMSContextCurrentSiteID)) AND DateAdd(day, -1 * @LastXDays, GetDate()) < PostTime
GROUP BY  Year(PostTime), Month(PostTime), Day(PostTime) ORDER BY Year(PostTime), Month(PostTime), Day(PostTime)', 0, N'bar', 171, N'{$Forums.NewPostsByDay$} - {%CMSContextCurrentSiteName%}', N'{$Forums.Days$}', N'{$Forums.NumberOfPosts$}', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>60</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>None</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><legendposition>None</legendposition><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><xaxisfont>Arial;bold;11;;</xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip></seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No posts found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '5031d222-58ed-4bb0-9a62-3ffb0fe7ca86', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (324, N'GraphHoursAggViews', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 187, N'', N'{$reports_general.label_hours$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisformat></yaxisformat><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '4314f75b-476d-4cf8-8c26-c5d2f6827dcf', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (325, N'GraphDayAggViews', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 188, N'', N'{$reports_general.label_days$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '6ebc8a28-abc3-4e1f-8124-c1709384ea3d', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (326, N'GraphMonthAggViews', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 189, N'', N'{$reports_general.label_months$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'd7549a8a-0e29-46e0-969f-d98defab4b7f', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (327, N'GraphYearAggViews', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 190, N'', N'{$reports_general.label_years$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><valuesaspercent>False</valuesaspercent><yaxistitlecolor>#000000</yaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><scalemax></scalemax><pieshowpercentage>False</pieshowpercentage><showas3d>False</showas3d><plotareasecbgcolor></plotareasecbgcolor><columnwidth></columnwidth><seriesitemlink></seriesitemlink><linedrawinstyle>Line</linedrawinstyle><xaxistitleposition>Center</xaxistitleposition><xaxistitlefont>Arial;bold;11;;</xaxistitlefont><chartareaborderstyle>Solid</chartareaborderstyle><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><exportenabled>true</exportenabled><piedoughnutradius>60</piedoughnutradius><chartareabordersize>1</chartareabordersize><barorientation>Vertical</barorientation><pielabelstyle>Outside</pielabelstyle><xaxistitlecolor>#000000</xaxistitlecolor><borderskinstyle>None</borderskinstyle><xaxislabelfont></xaxislabelfont><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><stackedbarmaxstacked>False</stackedbarmaxstacked><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><querynorecordtext>No data found</querynorecordtext><xaxisangle></xaxisangle><piedrawingdesign>SoftEdge</piedrawingdesign><legendbordercolor>#000000</legendbordercolor><seriesgradient>None</seriesgradient><legendposition>None</legendposition><legendtitle></legendtitle><showgrid>true</showgrid><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisusexaxissettings>True</yaxisusexaxissettings><baroverlay>False</baroverlay><seriesprbgcolor></seriesprbgcolor><legendbgcolor></legendbgcolor><legendfixedposition></legendfixedposition><rotatex></rotatex><rotatey></rotatey><seriesbordersize>2</seriesbordersize><titlecolor>#000000</titlecolor><plotareabordercolor>#bbbbbb</plotareabordercolor><legendinside>False</legendinside><xaxissort>True</xaxissort><plotareagradient>None</plotareagradient><seriessymbols>Circle</seriessymbols><yaxisformat></yaxisformat><xaxisinterval></xaxisinterval><showmajorgrid>True</showmajorgrid><yaxisusexsettings>true</yaxisusexsettings><scalemin></scalemin><xaxisfont>Arial;bold;11;;</xaxisfont><yaxistitlefont>Arial;bold;11;;</yaxistitlefont><plotareaborderstyle>Solid</plotareaborderstyle><yaxistitleposition>Center</yaxistitleposition><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><yaxislabelfont></yaxislabelfont><legendborderstyle>Solid</legendborderstyle><chartareagradient>BottomTop</chartareagradient><piedrawingstyle>Pie</piedrawingstyle><plotareaprbgcolor></plotareaprbgcolor><titleposition>Center</titleposition><yaxisangle></yaxisangle><bardrawingstyle>Cylinder</bardrawingstyle><seriesborderstyle>Solid</seriesborderstyle><xaxisformat>{yyyy}</xaxisformat><seriessecbgcolor></seriessecbgcolor><pieothervalue></pieothervalue><titlefontnew>Arial;bold;14;;</titlefontnew><plotareabordersize>1</plotareabordersize><legendbordersize>1</legendbordersize><yaxisfont></yaxisfont><tenpowers>False</tenpowers></customdata>', 'e860c778-6056-4669-b794-c5f358683a55', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (328, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''month''', 0, N'line', 191, N'', N'{$reports_general.label_months$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'bd459e0d-d86f-4f1f-86ce-34abd5f7b9a7', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (329, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_MonthHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 191, N'{$reports_aggviewscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'ef2a0de8-fc4b-4d88-a326-20acdbc0eb63', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (330, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''day''', 0, N'line', 192, N'', N'{$reports_general.label_days$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '3bae9128-49ac-4b1c-bbb0-d06134a49f5e', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (331, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_DayHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 192, N'{$reports_aggviewscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '1737c887-14f9-4fa7-b18a-4eb70b70791e', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (332, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''hour''', 0, N'line', 193, N'', N'{$reports_general.label_hours$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'e510cfb6-3591-4a63-8787-9b568fdfbe6f', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (333, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_HourHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 193, N'{$reports_aggviewscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '559e4eb1-8379-4fba-aa20-dca33d42a6fc', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (334, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''year''', 0, N'line', 194, N'', N'{$reports_general.label_years$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'd3233eb7-554b-40b9-8561-07c0ad477e9c', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (335, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_YearHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 194, N'{$reports_aggviewscult.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'c24b7a0c-8efa-49e4-8c60-4d6a651e9d64', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (584, N'SampleChart', N'Sample chart', N'SELECT TOP 5 ClassDisplayName as ''Class name'',  ((((ClassID+1)) % 10) *  (datepart(ms, GETDATE()) +1)) as ''Random value''  FROM CMS_Class WHERE ClassIsMenuItemType = 1', 0, N'bar', 361, N'', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#195EB3</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>None</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip></seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'bed05af1-8b4b-494f-b609-400e9bf14e92', '20110727 13:02:34', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (591, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 364, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><yaxisformat></yaxisformat><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8ecd2c83-00e1-4124-bf75-78347672a155', '20110927 12:47:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (592, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 365, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '89e3e8be-ea47-4016-b6f2-012ed913900a', '20110927 12:47:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (593, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 367, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'c1fe9475-4f25-4837-a68a-007913b00f41', '20110927 12:47:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (594, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 366, N'Conversions count', N'', N'', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'fc269c6d-b229-4e36-bee0-48c297f4a308', '20110927 12:47:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (617, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 382, N'Conversions count', N'', N'', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisformat></yaxisformat><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'e33136e3-30bc-4acb-9e0d-687bfc433909', '20110927 12:47:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (633, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 398, N'Total conversion value', N'', N'', 800, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '8b72b3e7-c894-4826-bfa9-18e5ffe35187', '20110927 12:49:10', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (634, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 399, N'Total conversion value', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '2e99c57d-19a0-4e2b-9d93-7f1818dfffe8', '20110927 12:49:10', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (635, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 400, N'Total conversions value', N'', N'', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '1a6e15d8-1284-40a2-9cab-8cf193842909', '20110927 12:49:10', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (636, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 401, N'Total conversion value', N'', N'', 600, 400, 100, N'<customdata><valuesaspercent>False</valuesaspercent><yaxistitlecolor>#000000</yaxistitlecolor><titleposition>Center</titleposition><seriesbordercolor>#000000</seriesbordercolor><scalemax></scalemax><pieshowpercentage>False</pieshowpercentage><showas3d>False</showas3d><legendtitle></legendtitle><plotareasecbgcolor></plotareasecbgcolor><linedrawinstyle>Line</linedrawinstyle><xaxistitleposition>Center</xaxistitleposition><seriesitemlink></seriesitemlink><itemvalueformat></itemvalueformat><chartareaborderstyle>Solid</chartareaborderstyle><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><exportenabled>True</exportenabled><piedoughnutradius>60</piedoughnutradius><chartareabordersize>1</chartareabordersize><barorientation>Vertical</barorientation><pielabelstyle>Outside</pielabelstyle><xaxistitlecolor>#000000</xaxistitlecolor><borderskinstyle>None</borderskinstyle><xaxislabelfont></xaxislabelfont><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><stackedbarmaxstacked>False</stackedbarmaxstacked><seriesitemtooltip></seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><seriesitemlink></seriesitemlink><querynorecordtext>No data found</querynorecordtext><xaxisangle>0</xaxisangle><piedrawingdesign>SoftEdge</piedrawingdesign><legendbordercolor>#000000</legendbordercolor><seriesgradient>None</seriesgradient><legendposition>Bottom</legendposition><legendbordersize>1</legendbordersize><plotareaborderstyle>Solid</plotareaborderstyle><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisusexaxissettings>True</yaxisusexaxissettings><legendinside>False</legendinside><baroverlay>False</baroverlay><seriesprbgcolor></seriesprbgcolor><legendbgcolor></legendbgcolor><legendfixedposition></legendfixedposition><rotatex></rotatex><rotatey></rotatey><seriesbordersize>2</seriesbordersize><titlecolor>#000000</titlecolor><plotareabordercolor>#bbbbbb</plotareabordercolor><legendinside>False</legendinside><xaxissort>True</xaxissort><plotareagradient>None</plotareagradient><seriessymbols>Circle</seriessymbols><yaxisformat></yaxisformat><xaxisinterval></xaxisinterval><showmajorgrid>True</showmajorgrid><scalemin></scalemin><xaxisfont></xaxisfont><yaxistitleposition>Center</yaxistitleposition><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxisinterval></xaxisinterval><yaxislabelfont></yaxislabelfont><legendborderstyle>Solid</legendborderstyle><chartareagradient>BottomTop</chartareagradient><piedrawingstyle>Pie</piedrawingstyle><plotareaprbgcolor></plotareaprbgcolor><displayitemvalue>False</displayitemvalue><yaxisangle></yaxisangle><bardrawingstyle>Cylinder</bardrawingstyle><seriesborderstyle>Solid</seriesborderstyle><xaxisformat>{yyyy}</xaxisformat><seriessecbgcolor></seriessecbgcolor><pieothervalue></pieothervalue><titlefontnew></titlefontnew><plotareabordersize>1</plotareabordersize><yaxisfont></yaxisfont><tenpowers>False</tenpowers></customdata>', '587ffc81-5bf1-4763-9684-b6c79f0cb333', '20110927 12:49:10', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (637, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 402, N'Total conversion value', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><chartareaborderstyle>Solid</chartareaborderstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '89b631f8-56c5-49f1-9973-6332f344c45e', '20110927 12:49:10', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (643, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.CodeName AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName = ''''  OR @TestName = ABTestName OR @TestName IS NULL)
  AND (@ConversionName = '''' OR @ConversionName = StatisticsObjectName OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_HourHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
      (SELECT ABVariantPath  From OM_ABVariant WHERE  ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = Name AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
      /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL))
  	)
	 )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name = 
   (SELECT ABTestDisplayName FROM OM_ABTest WHERE ABTestName = Name)     
 EXEC Proc_Analytics_Pivot ''hour''', 0, N'line', 408, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0:0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '3dd7ca1c-d763-42a5-a33d-aa22d77d999b', '20110927 12:48:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (644, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.CodeName AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName = ''''  OR @TestName = ABTestName OR @TestName IS NULL)
  AND (@ConversionName = '''' OR @ConversionName = StatisticsObjectName OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_DayHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
      (SELECT ABVariantPath  From OM_ABVariant WHERE  ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = Name AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
      /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL))
  	)
	 )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name = 
   (SELECT ABTestDisplayName FROM OM_ABTest WHERE ABTestName = Name)     
 EXEC Proc_Analytics_Pivot ''day''', 0, N'line', 409, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0:0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '7889f891-d473-4d13-ae48-b4838fdc0918', '20110927 12:48:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (645, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.CodeName AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName = ''''  OR @TestName = ABTestName OR @TestName IS NULL)
  AND (@ConversionName = '''' OR @ConversionName = StatisticsObjectName OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_MonthHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
      (SELECT ABVariantPath  From OM_ABVariant WHERE  ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = Name AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
      /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL))
  	)
	 )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name = 
   (SELECT ABTestDisplayName FROM OM_ABTest WHERE ABTestName = Name)     
 EXEC Proc_Analytics_Pivot ''month''', 0, N'line', 410, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'f23b8480-1992-4a15-a725-3364fa9f9d53', '20110927 12:48:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (646, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.CodeName AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName = ''''  OR @TestName = ABTestName OR @TestName IS NULL)
  AND (@ConversionName = '''' OR @ConversionName = StatisticsObjectName OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_WeekHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
      (SELECT ABVariantPath  From OM_ABVariant WHERE  ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = Name AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
      /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL))
  	)
	 )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name = 
   (SELECT ABTestDisplayName FROM OM_ABTest WHERE ABTestName = Name)     
 EXEC Proc_Analytics_Pivot ''week''', 0, N'line', 411, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0:0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'fec56583-6cf7-41a6-99f5-04b510ace986', '20110927 12:48:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (647, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.CodeName AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName = ''''  OR @TestName = ABTestName OR @TestName IS NULL)
  AND (@ConversionName = '''' OR @ConversionName = StatisticsObjectName OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_YearHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
      (SELECT ABVariantPath  From OM_ABVariant WHERE  ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = Name AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
      /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL))
  	)
	 )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name = 
   (SELECT ABTestDisplayName FROM OM_ABTest WHERE ABTestName = Name)     
 EXEC Proc_Analytics_Pivot ''year''', 0, N'line', 412, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0:0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><seriesbordersize>2</seriesbordersize><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><xaxisfont></xaxisfont><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY%</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '2fac0091-312f-411d-a918-db2c6c74d511', '20110927 12:48:31', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (662, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''year''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 429, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>yyyy</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Variants</legendtitle><scalemin></scalemin><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><querynorecordtext>No data found</querynorecordtext><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '0c80e129-ddbf-45ee-8dfd-3dd0f203305d', '20110927 12:45:05', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (663, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 429, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '2d5e9d4c-f89f-4f3f-adc9-7f8c8d1ae1dd', '20110927 12:44:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (664, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 431, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext>No data found</querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '179d0746-6ce5-44df-90a7-26fe42c80c41', '20110927 12:44:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (666, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 432, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '38e940e2-a050-4a84-be91-7d8ffe7ffb43', '20110927 12:44:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (667, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''week''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 432, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat></seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Variants</legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ead565a4-7102-4b63-996b-e7638f36e1a8', '20110927 12:45:05', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (668, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 433, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '0492565e-15bd-4cb7-b842-3168f54e5fa6', '20110927 12:44:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (669, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''hour''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 433, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>g</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendtitle>Variants</legendtitle><scalemin></scalemin><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '16b89ab5-868a-4ada-94c5-eca12c48e60b', '20110927 12:45:05', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (670, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 434, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'af5af882-2451-418e-8c16-92aef34fed03', '20110927 12:44:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (671, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''day''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 434, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><legendposition>Right</legendposition><xaxislabelfont></xaxislabelfont><rotatex></rotatex><rotatey></rotatey><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><scalemin></scalemin><exportenabled>True</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle>Variants</legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '6a18bc32-5804-442e-b9c9-e70b2192026f', '20110927 12:45:05', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (674, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name  
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 437, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '1b5c68e2-e56e-4ca3-89d7-45f5fd7fe943', '20110927 12:41:33', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (675, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''year''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 437, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>yyyy</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><chartareaborderstyle>Solid</chartareaborderstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendtitle>Variants</legendtitle><scalemin></scalemin><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '0b85b94b-575a-4a74-bb88-3542c0073297', '20110927 12:42:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (676, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name  
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 438, N'', N'', N'', 600, 500, 100, N'<customdata><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '36660c4a-c6af-421c-8654-8bfaf708bc8f', '20110927 12:41:34', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (677, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''month''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 438, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>y</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendposition>Right</legendposition><yaxisusexaxissettings>True</yaxisusexaxissettings><querynorecordtext>No data found</querynorecordtext><exportenabled>True</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle>Variants</legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '25e9be47-70fa-4b4e-afb9-62adc637853a', '20110927 12:42:21', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (678, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name  
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 439, N'', N'', N'', 600, 500, 100, N'<customdata><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '42303267-0d64-4a04-a327-d65b1ea6cfbe', '20110927 12:41:34', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (679, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''week''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 439, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat></seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><displaylegend>True</displaylegend><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendposition>Right</legendposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle>Variants</legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', 'f37269be-a21e-4f11-b8c3-92f6a0bbf562', '20110927 12:42:21', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (680, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name  
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 440, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '96ba8f34-2f3a-47ad-b990-8c52a8bec894', '20110927 12:41:34', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (681, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''day''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 440, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendtitle>Variants</legendtitle><querynorecordtext>No data found</querynorecordtext><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', 'bf72f72d-f9f8-4d47-a8f9-7362f97ee850', '20110927 12:42:21', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (682, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name  
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABTestDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 441, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'd44cda3b-3afb-4fe2-8322-75e856b8f0be', '20110927 12:41:34', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (683, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsValue) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''hour''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 441, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>g</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendposition>Right</legendposition><yaxisusexaxissettings>True</yaxisusexaxissettings><scalemin></scalemin><exportenabled>True</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle>Variants</legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '99d157ed-6418-4a52-b330-17585960475a', '20110927 12:42:21', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (685, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  TestID INT,
  Culture NVARCHAR(10) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,TestID,Culture)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.DisplayName AS Name,T1.TestID AS TestID,T1.Culture AS Culture
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS DisplayName,ABTestID AS TestID,
      ABTestCulture AS Culture
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST(SUM (HitsCount) AS DECIMAL (10,1)) FROM Analytics_Statistics
   JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_YearHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN 
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = TestID
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
     )
  )
        AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = Culture OR Culture IS NULL)             
   ) * 100
   
   -- Prepare for PIVOT - delete all help columns
 ALTER TABLE #AnalyticsTempTable DROP COLUMN TestID  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture      
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 443, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY%</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'd5004ef5-897a-448c-8719-773046503ded', '20110927 12:28:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (686, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 
SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,2)) Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABVariantName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_YearHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantName = Name AND ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
              /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL)       
     )
    )
  )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT ABVariantDisplayName FROM OM_ABVariant WHERE ABVariantName = Name
    AND ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID))
   
 EXEC Proc_Analytics_Pivot ''Year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 443, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat>yyyy</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser|(user)administrator|(hash)88b2eb4368ba145ee9649cc738535aa65530d54421376e3a00b7b7d9699f343b%}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval|(user)administrator|(hash)48d99c0166b2601fe3c2bd009b41791d32678c2da9b8a852ca54cb8cbc92a29e%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Variants</legendtitle><scalemin></scalemin><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', 'b024a991-77ee-4433-b3a5-639c99e30ee7', '20110927 12:29:11', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (687, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 
SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,2)) Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABVariantName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_MonthHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantName = Name AND ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
              /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL)       
     )
    )
  )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT ABVariantDisplayName FROM OM_ABVariant WHERE ABVariantName = Name
    AND ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID))
   
 EXEC Proc_Analytics_Pivot ''Month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 444, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat>y</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><legendtitle>Variants</legendtitle><scalemin></scalemin><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '1692ed77-c1cf-49cf-bc1a-593cd4b4fc07', '20110927 12:29:11', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (688, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  TestID INT,
  Culture NVARCHAR(10) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,TestID,Culture)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.DisplayName AS Name,T1.TestID AS TestID,T1.Culture AS Culture
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS DisplayName,ABTestID AS TestID,
      ABTestCulture AS Culture
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST(SUM (HitsCount) AS DECIMAL (10,1)) FROM Analytics_Statistics
   JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_MonthHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN 
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = TestID
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
     )
  )
        AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = Culture OR Culture IS NULL)             
   ) * 100
   
   -- Prepare for PIVOT - delete all help columns
 ALTER TABLE #AnalyticsTempTable DROP COLUMN TestID  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture      
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 444, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '61daa313-8a79-423e-a7dc-ee56e0078fff', '20110927 12:28:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (689, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 
SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,2)) Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABVariantName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_WeekHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantName = Name AND ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
              /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL)       
     )
    )
  )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT ABVariantDisplayName FROM OM_ABVariant WHERE ABVariantName = Name
    AND ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID))
   
 EXEC Proc_Analytics_Pivot ''Week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 445, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat></seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><displaylegend>True</displaylegend><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><legendposition>Right</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><exportenabled>true</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle>Variants</legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', 'b47ec361-07df-4227-9503-8afeb5cd7006', '20110927 12:29:11', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (690, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  TestID INT,
  Culture NVARCHAR(10) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,TestID,Culture)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.DisplayName AS Name,T1.TestID AS TestID,T1.Culture AS Culture
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS DisplayName,ABTestID AS TestID,
      ABTestCulture AS Culture
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST(SUM (HitsCount) AS DECIMAL (10,1)) FROM Analytics_Statistics
   JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_WeekHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN 
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = TestID
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
     )
  )
        AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = Culture OR Culture IS NULL)             
   ) * 100
   
   -- Prepare for PIVOT - delete all help columns
 ALTER TABLE #AnalyticsTempTable DROP COLUMN TestID  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture      
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 445, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -  #SER: #VALY%</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'd1005068-cb30-4a4e-88b9-e8338a9c81f9', '20110927 12:28:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (691, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 
SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,2)) Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABVariantName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_DayHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantName = Name AND ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
              /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL)       
     )
    )
  )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT ABVariantDisplayName FROM OM_ABVariant WHERE ABVariantName = Name
    AND ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID))
   
 EXEC Proc_Analytics_Pivot ''Day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 446, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><legendposition>Right</legendposition><yaxisusexaxissettings>True</yaxisusexaxissettings><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><exportenabled>true</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle>Variants</legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '351f7b1d-33ce-4b78-984e-4d525598e1e5', '20110927 12:29:12', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (692, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  TestID INT,
  Culture NVARCHAR(10) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,TestID,Culture)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.DisplayName AS Name,T1.TestID AS TestID,T1.Culture AS Culture
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS DisplayName,ABTestID AS TestID,
      ABTestCulture AS Culture
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST(SUM (HitsCount) AS DECIMAL (10,1)) FROM Analytics_Statistics
   JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_DayHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN 
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = TestID
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
     )
  )
        AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = Culture OR Culture IS NULL)             
   ) * 100
   
   -- Prepare for PIVOT - delete all help columns
 ALTER TABLE #AnalyticsTempTable DROP COLUMN TestID  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture      
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 446, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY%</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '2868f95a-9fe0-4aa4-b5ba-7b74315825c0', '20110927 12:28:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (693, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 
SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,2)) Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABVariantName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_HourHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantName = Name AND ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)  
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
              /*culture */
      AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = (SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID)
          OR ((SELECT ABTestCulture FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID) IS NULL)       
     )
    )
  )
   ) * 100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT ABVariantDisplayName FROM OM_ABVariant WHERE ABVariantName = Name
    AND ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE ABTestName = @TestName AND ABTestSiteID = @CMSContextCurrentSiteID))
   
 EXEC Proc_Analytics_Pivot ''Hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 447, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat>g</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><legendtitle>Variants</legendtitle><scalemin></scalemin><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '52e2dd16-f969-427d-b536-a8b80d5c9d6b', '20110927 12:29:12', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (694, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  TestID INT,
  Culture NVARCHAR(10) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,TestID,Culture)
   SELECT [Date] AS StartTime ,CAST (T1.Hits AS DECIMAL(10,1)) AS Hits  ,T1.DisplayName AS Name,T1.TestID AS TestID,T1.Culture AS Culture
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABTestDisplayName AS DisplayName,ABTestID AS TestID,
      ABTestCulture AS Culture
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_ABTest ON ABTestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14) AND ABTestSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%''
  AND (@TestName IS NULL OR @TestName = '''' OR @TestName = ABTestName)
  AND (@ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,ABTestName,ABTestDisplayName,ABTestID,ABTestCulture
  ) AS T1
 ON Dates.Date=T1.Interval;
     
 UPDATE #AnalyticsTempTable SET Hits = Hits/(
   SELECT CAST(SUM (HitsCount) AS DECIMAL (10,1)) FROM Analytics_Statistics
   JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_HourHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
  (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN 
    (
      SELECT ABVariantPath  From OM_ABVariant WHERE ABVariantSiteID = @CMSContextCurrentSiteID
      AND  ABVariantTestID = TestID
      AND NodeSiteID = @CMSContextCurrentSiteID AND (DocumentCulture = StatisticsObjectCulture OR StatisticsObjectCulture IS NULL)
     )
  )
        AND (StatisticsObjectCulture IS NULL OR StatisticsObjectCulture = Culture OR Culture IS NULL)             
   ) * 100
   
   -- Prepare for PIVOT - delete all help columns
 ALTER TABLE #AnalyticsTempTable DROP COLUMN TestID  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture      
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 447, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY%</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '9b93c03f-7346-42b7-acd4-e8a201ed5691', '20110927 12:28:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (695, N'graph', N'graph', N'DECLARE @StartDate DateTime; 
-- Trim time
SET @FromDate =  DATEADD(dd, DATEDIFF(dd, 0, @FromDate), 0);
        
-- Get first day of day
SET @StartDate = DATEADD(yy, DATEDIFF(yy, 0, @FromDate), 0)
    
-- if not same show next day
IF (@StartDate <> @FromDate)
BEGIN
  SET @FromDate = DATEADD (DAY,1,@STARTDATE);
END;
WITH Dates AS (
        SELECT
         [Date] = CONVERT(DATETIME,@FromDate)
        UNION ALL SELECT
         [Date] = DATEADD(DAY, 1, [Date])
        FROM
         Dates
        WHERE
         Date < DATEADD(DAY,-1,@toDate)
)
SELECT Dates.Date AS StartTime ,SUM(Hits) AS ''Hits''
FROM Dates   
 LEFT JOIN
  (SELECT HitsStartTime AS Interval,
  SUM (HitsValue) AS Hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID )   
  AND StatisticsCode LIKE ''%abconversion;%''
  AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  
  AND (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR  @ConversionName = '''')
  GROUP BY HitsStartTime,StatisticsCode, SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  ) AS T1
 ON Dates.Date=T1.Interval
 GROUP BY Dates.Date', 0, N'line', 448, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax>100</scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'f34f08e8-0d4a-4430-858f-e4260e4b341b', '20110927 12:45:48', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (696, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime,SUM(HitsCount) AS Hits,ABVariantPath AS Name
    FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'')
  LEFT OUTER JOIN
  (SELECT * FROM
  Analytics_DayHits
  LEFT JOIN Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID     
  LEFT JOIN OM_ABVariant ON SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) = OM_ABVariant.ABVariantName
  AND OM_ABVariant.ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE OM_ABTest.ABTestName = @TestName    
    AND OM_ABTest.ABTestSiteID = @CMSContextCurrentSiteID)    
   WHERE    
   (StatisticsSiteID = @CMSContextCurrentSiteID)    
   AND StatisticsCode LIKE ''abconversion;%''
   AND @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)
   AND (StatisticsObjectName = @ConversionName OR @ConversionName = '''')
   )
   AS X ON [Date] = X.HitsStartTime
  GROUP BY [Date],ABVariantPath  
   
  EXEC Proc_Analytics_Pivot ''day''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'bar', 448, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><pieothervalue></pieothervalue><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser%}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><xaxislabelfont></xaxislabelfont><rotatex></rotatex><rotatey></rotatey><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Pages</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '5a016805-7a13-4358-a78e-603e2cd45b40', '20110830 09:29:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (697, N'graph', N'graph', N'DECLARE @StartDate DateTime; 
-- Trim time
SET @FromDate =  DATEADD(dd, DATEDIFF(dd, 0, @FromDate), 0);
        
-- Get first day of month
SET @StartDate = DATEADD(yy, DATEDIFF(yy, 0, @FromDate), 0)
    
-- if not same show next month
IF (@StartDate <> @FromDate)
BEGIN
  SET @FromDate = DATEADD (MONTH,1,@STARTDATE);
END;
WITH Dates AS (
        SELECT
         [Date] = CONVERT(DATETIME,@FromDate)
        UNION ALL SELECT
         [Date] = DATEADD(MONTH, 1, [Date])
        FROM
         Dates
        WHERE
         Date < DATEADD(MONTH,-1,@toDate)
)
SELECT Dates.Date AS StartTime ,SUM(Hits) AS ''Hits''
FROM Dates   
 LEFT JOIN
  (SELECT HitsStartTime AS Interval,
  SUM (HitsValue) AS Hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID )   
  AND StatisticsCode LIKE ''%abconversion;%''
  AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  
  AND (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR  @ConversionName = '''')
  GROUP BY HitsStartTime,StatisticsCode, SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  ) AS T1
 ON Dates.Date=T1.Interval
 GROUP BY Dates.Date', 0, N'line', 449, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'fecd2c3d-5df8-4b49-8886-177a21fc0966', '20110927 12:45:47', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (698, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime,SUM(HitsCount) AS Hits,ABVariantPath AS Name
    FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'')
  LEFT OUTER JOIN
  (SELECT * FROM
  Analytics_MonthHits
  LEFT JOIN Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID     
  LEFT JOIN OM_ABVariant ON SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) = OM_ABVariant.ABVariantName
  AND OM_ABVariant.ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE OM_ABTest.ABTestName = @TestName    
    AND OM_ABTest.ABTestSiteID = @CMSContextCurrentSiteID)    
   WHERE    
   (StatisticsSiteID = @CMSContextCurrentSiteID)    
   AND StatisticsCode LIKE ''abconversion;%''
   AND @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)
   AND (StatisticsObjectName = @ConversionName OR @ConversionName = '''')
   )
   AS X ON [Date] = X.HitsStartTime
  GROUP BY [Date],ABVariantPath  
   
  EXEC Proc_Analytics_Pivot ''month''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'bar', 449, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>y</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><chartareaborderstyle>Solid</chartareaborderstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><pieothervalue></pieothervalue><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><legendposition>Right</legendposition><yaxisusexaxissettings>True</yaxisusexaxissettings><scalemin></scalemin><exportenabled>true</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle>Pages</legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '0bb8a9e9-cd65-4bf4-8d7c-4b0e1863aece', '20110830 09:29:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (699, N'graph', N'graph', N'DECLARE @StartDate DateTime; 
-- Trim time
SET @FromDate =  DATEADD(dd, DATEDIFF(dd, 0, @FromDate), 0);
        
-- Get first day of week
SET @StartDate = DATEADD(yy, DATEDIFF(yy, 0, @FromDate), 0)
    
-- if not same show next week
IF (@StartDate <> @FromDate)
BEGIN
  SET @FromDate = DATEADD (WEEK,1,@STARTDATE);
END;
WITH Dates AS (
        SELECT
         [Date] = CONVERT(DATETIME,@FromDate)
        UNION ALL SELECT
         [Date] = DATEADD(WEEK, 1, [Date])
        FROM
         Dates
        WHERE
         Date < DATEADD(WEEK,-1,@toDate)
)
SELECT Dates.Date AS StartTime ,SUM(Hits) AS ''Hits''
FROM Dates   
 LEFT JOIN
  (SELECT HitsStartTime AS Interval,
  SUM (HitsValue) AS Hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID )   
  AND StatisticsCode LIKE ''%abconversion;%''
  AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  
  AND (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR  @ConversionName = '''')
  GROUP BY HitsStartTime,StatisticsCode, SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  ) AS T1
 ON Dates.Date=T1.Interval
 GROUP BY Dates.Date', 0, N'line', 450, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'f79980eb-fc00-4e2e-8127-bd8ebec7eb14', '20110927 12:45:48', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (700, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime,SUM(HitsCount) AS Hits,ABVariantPath AS Name
    FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'')
  LEFT OUTER JOIN
  (SELECT * FROM
  Analytics_WeekHits
  LEFT JOIN Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID     
  LEFT JOIN OM_ABVariant ON SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) = OM_ABVariant.ABVariantName
  AND OM_ABVariant.ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE OM_ABTest.ABTestName = @TestName    
    AND OM_ABTest.ABTestSiteID = @CMSContextCurrentSiteID)    
   WHERE    
   (StatisticsSiteID = @CMSContextCurrentSiteID)    
   AND StatisticsCode LIKE ''abconversion;%''
   AND @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)
   AND (StatisticsObjectName = @ConversionName OR @ConversionName = '''')
   )
   AS X ON [Date] = X.HitsStartTime
  GROUP BY [Date],ABVariantPath  
   
  EXEC Proc_Analytics_Pivot ''week''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 450, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat></seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><chartareaborderstyle>Solid</chartareaborderstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Pages</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '766e3dac-1cc5-4d98-887b-ed5cfa619d5d', '20110830 09:29:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (701, N'graph', N'graph', N'DECLARE @StartDate DateTime; 
-- Trim time
SET @FromDate =  DATEADD(dd, DATEDIFF(dd, 0, @FromDate), 0);
        
-- Get first day of year
SET @StartDate = DATEADD(yy, DATEDIFF(yy, 0, @FromDate), 0)
    
-- if not same show next year
IF (@StartDate <> @FromDate)
BEGIN
  SET @FromDate = DATEADD (YEAR,1,@STARTDATE);
END;
WITH Dates AS (
        SELECT
         [Date] = CONVERT(DATETIME,@FromDate)
        UNION ALL SELECT
         [Date] = DATEADD(YEAR, 1, [Date])
        FROM
         Dates
        WHERE
         Date < DATEADD(YEAR,-1,@toDate)
)
SELECT Dates.Date AS StartTime ,SUM(Hits) AS ''Hits''
FROM Dates   
 LEFT JOIN
  (SELECT HitsStartTime AS Interval,
  SUM (HitsValue) AS Hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID )   
  AND StatisticsCode LIKE ''%abconversion;%''
  AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  
  AND (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR  @ConversionName = '''')
  GROUP BY HitsStartTime,StatisticsCode, SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  ) AS T1
 ON Dates.Date=T1.Interval
 GROUP BY Dates.Date', 0, N'line', 451, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '1c451182-9d0a-4845-861c-50b3c50c25a1', '20110927 12:45:47', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (702, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime,SUM(HitsCount) AS Hits,ABVariantPath AS Name
    FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'')
  LEFT OUTER JOIN
  (SELECT * FROM
  Analytics_YearHits
  LEFT JOIN Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID     
  LEFT JOIN OM_ABVariant ON SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) = OM_ABVariant.ABVariantName
  AND OM_ABVariant.ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE OM_ABTest.ABTestName = @TestName    
    AND OM_ABTest.ABTestSiteID = @CMSContextCurrentSiteID)    
   WHERE    
   (StatisticsSiteID = @CMSContextCurrentSiteID)    
   AND StatisticsCode LIKE ''abconversion;%''
   AND @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)
   AND (StatisticsObjectName = @ConversionName OR @ConversionName = '''')
   )
   AS X ON [Date] = X.HitsStartTime
  GROUP BY [Date],ABVariantPath  
   
  EXEC Proc_Analytics_Pivot ''year''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'bar', 451, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>yyyy</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><yaxisformat></yaxisformat><legendtitle>Pages</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '1d3a003c-35a8-48ec-a903-f29219c078d3', '20110830 09:29:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (703, N'graph', N'graph', N'DECLARE @StartDate DateTime; 
-- Trim time
SET @FromDate =  DATEADD(dd, DATEDIFF(dd, 0, @FromDate), 0);
        
-- Get first day of hour
SET @StartDate = DATEADD(yy, DATEDIFF(yy, 0, @FromDate), 0)
    
-- if not same show next hour
IF (@StartDate <> @FromDate)
BEGIN
  SET @FromDate = DATEADD (HOUR,1,@STARTDATE);
END;
WITH Dates AS (
        SELECT
         [Date] = CONVERT(DATETIME,@FromDate)
        UNION ALL SELECT
         [Date] = DATEADD(HOUR, 1, [Date])
        FROM
         Dates
        WHERE
         Date < DATEADD(HOUR,-1,@toDate)
)
SELECT Dates.Date AS StartTime ,SUM(Hits) AS ''Hits''
FROM Dates   
 LEFT JOIN
  (SELECT HitsStartTime AS Interval,
  SUM (HitsValue) AS Hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID )   
  AND StatisticsCode LIKE ''%abconversion;%''
  AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  
  AND (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR  @ConversionName = '''')
  GROUP BY HitsStartTime,StatisticsCode, SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)  ) AS T1
 ON Dates.Date=T1.Interval
 GROUP BY Dates.Date', 0, N'line', 452, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax>100</scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '575ce6bf-c86d-4332-b6ec-5e0cdb8c34a9', '20110927 12:45:48', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (704, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime,SUM(HitsCount) AS Hits,ABVariantPath AS Name
    FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'')
  LEFT OUTER JOIN
  (SELECT * FROM
  Analytics_HourHits
  LEFT JOIN Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID     
  LEFT JOIN OM_ABVariant ON SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) = OM_ABVariant.ABVariantName
  AND OM_ABVariant.ABVariantTestID IN (SELECT ABTestID FROM OM_ABTest WHERE OM_ABTest.ABTestName = @TestName    
    AND OM_ABTest.ABTestSiteID = @CMSContextCurrentSiteID)    
   WHERE    
   (StatisticsSiteID = @CMSContextCurrentSiteID)    
   AND StatisticsCode LIKE ''abconversion;%''
   AND @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)
   AND (StatisticsObjectName = @ConversionName OR @ConversionName = '''')
   )
   AS X ON [Date] = X.HitsStartTime
  GROUP BY [Date],ABVariantPath  
   
  EXEC Proc_Analytics_Pivot ''hour''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'bar', 452, N'Conversions source pages', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>g</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><legendposition>Right</legendposition><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Pages</legendtitle><xaxistitlecolor>#000000</xaxistitlecolor><exportenabled>true</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><querynorecordtext>No data found</querynorecordtext><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '36c16b32-ca93-454f-8443-4d56f3418b43', '20110830 09:29:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (706, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
     SELECT [Date] AS StartTime, SUM(HitsCount) AS Hits,X.Name AS Name
     
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates
    LEFT OUTER JOIN
      (SELECT  HitsStartTime, ConversionDisplayName AS Name, HitsCount FROM Analytics_YearHits    
        INNER JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID                  
        INNER JOIN   Analytics_Conversion ON ConversionName = StatisticsObjectName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      AND StatisticsCode LIKE ''abconversion;%''
      AND (@VariationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) OR @VariationName IS NULL OR @VariationName = '''')
      AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)    
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY Name ,[Date]  
    
   EXEC Proc_Analytics_Pivot ''year''
   EXEC Proc_Analytics_RemoveTempTable', 0, N'', 464, N'Conversions by variants', N'', N'', 600, 400, 100, N'<customdata><valuesaspercent>True</valuesaspercent><yaxistitlecolor>#000000</yaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><scalemax>100</scalemax><pieshowpercentage>False</pieshowpercentage><showas3d>False</showas3d><legendtitle>Conversions</legendtitle><plotareasecbgcolor></plotareasecbgcolor><columnwidth>20</columnwidth><linedrawinstyle>Line</linedrawinstyle><xaxistitleposition>Center</xaxistitleposition><seriesitemlink></seriesitemlink><itemvalueformat></itemvalueformat><chartareaborderstyle>Solid</chartareaborderstyle><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><exportenabled>True</exportenabled><piedoughnutradius>60</piedoughnutradius><chartareabordersize>1</chartareabordersize><barorientation>Horizontal</barorientation><pielabelstyle>Outside</pielabelstyle><xaxistitlecolor>#000000</xaxistitlecolor><borderskinstyle>None</borderskinstyle><xaxislabelfont></xaxislabelfont><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><stackedbarmaxstacked>False</stackedbarmaxstacked><seriesitemtooltip></seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><seriesitemlink></seriesitemlink><querynorecordtext>No data found</querynorecordtext><xaxisangle></xaxisangle><piedrawingdesign>SoftEdge</piedrawingdesign><plotareagradient>None</plotareagradient><seriesgradient>None</seriesgradient><legendposition>Right</legendposition><legendbordersize>1</legendbordersize><plotareaborderstyle>Solid</plotareaborderstyle><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisusexaxissettings>True</yaxisusexaxissettings><legendbordercolor>#000000</legendbordercolor><baroverlay>False</baroverlay><seriesprbgcolor></seriesprbgcolor><legendbgcolor></legendbgcolor><legendfixedposition></legendfixedposition><rotatex></rotatex><rotatey></rotatey><seriesbordersize>1</seriesbordersize><titlecolor>#000000</titlecolor><plotareabordercolor>#bbbbbb</plotareabordercolor><legendinside>False</legendinside><xaxissort>True</xaxissort><seriessymbols>Circle</seriessymbols><displaylegend>True</displaylegend><xaxisinterval>1</xaxisinterval><showmajorgrid>True</showmajorgrid><scalemin></scalemin><xaxisfont></xaxisfont><yaxistitleposition>Center</yaxistitleposition><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxislabelfont></yaxislabelfont><yaxisformat></yaxisformat><legendborderstyle>Solid</legendborderstyle><chartareagradient>BottomTop</chartareagradient><piedrawingstyle>Pie</piedrawingstyle><plotareaprbgcolor></plotareaprbgcolor><titleposition>Center</titleposition><yaxisangle></yaxisangle><bardrawingstyle>Cylinder</bardrawingstyle><seriesborderstyle>Solid</seriesborderstyle><xaxisformat>{yyyy}</xaxisformat><seriessecbgcolor></seriessecbgcolor><pieothervalue></pieothervalue><seriesitemnameformat>yyyy</seriesitemnameformat><titlefontnew></titlefontnew><plotareabordersize>1</plotareabordersize><seriesitemnameformat></seriesitemnameformat><yaxisfont></yaxisfont><tenpowers>False</tenpowers></customdata>', '22ca429c-e063-4046-a210-c85fc0dd2dcd', '20110927 12:43:02', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (710, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
     SELECT [Date] AS StartTime, SUM(HitsCount) AS Hits,X.Name AS Name
     
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates
    LEFT OUTER JOIN
      (SELECT  HitsStartTime, ConversionDisplayName AS Name, HitsCount FROM Analytics_WeekHits    
        INNER JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID                  
        INNER JOIN   Analytics_Conversion ON ConversionName = StatisticsObjectName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      AND StatisticsCode LIKE ''abconversion;%''
      AND (@VariationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) OR @VariationName IS NULL OR @VariationName = '''')
      AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)    
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY Name ,[Date]  
    
   EXEC Proc_Analytics_Pivot ''week''
   EXEC Proc_Analytics_RemoveTempTable', 0, N'', 466, N'Conversions by variants', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat></seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><legendtitle>Conversions</legendtitle><xaxistitlecolor>#000000</xaxistitlecolor><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><querynorecordtext>No data found</querynorecordtext><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '926bbd71-80b8-4aa0-9bfd-e2ee30bb178b', '20110927 12:43:02', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (712, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
     SELECT [Date] AS StartTime, SUM(HitsCount) AS Hits,X.Name AS Name
     
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates
    LEFT OUTER JOIN
      (SELECT  HitsStartTime, ConversionDisplayName AS Name, HitsCount FROM Analytics_DayHits    
        INNER JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID                  
        INNER JOIN   Analytics_Conversion ON ConversionName = StatisticsObjectName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      AND StatisticsCode LIKE ''abconversion;%''
      AND (@VariationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) OR @VariationName IS NULL OR @VariationName = '''')
      AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)    
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY Name ,[Date]  
    
   EXEC Proc_Analytics_Pivot ''day''
   EXEC Proc_Analytics_RemoveTempTable', 0, N'', 467, N'Conversions by variants', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><xaxisformat>{d}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Conversions</legendtitle><scalemin></scalemin><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><querynorecordtext>No data found</querynorecordtext><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '3565a9ef-bac7-47a2-8574-586b3a488ee3', '20110927 12:43:02', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (715, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_WeekHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 469, N'', N'{$reports_general.label_weeks$}', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><chartareaborderstyle>Solid</chartareaborderstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><legendposition>Right</legendposition><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'c3543dea-eeb5-4533-982e-ca74fc37d9e6', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (716, N'GraphWeekNewReturnVisitors', N'new and returning visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_WeekHits WHERE (StatisticsSiteID =
@CMSContextCurrentSiteID) AND ((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 470, N'{$reports_visits.label_newandreturningvisitors$}', N'{$reports_general.label_weeks$}', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><querynorecordtext>No data found</querynorecordtext><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'ab00c7ae-8d59-4097-82c7-74e934b3c9af', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (717, N'GraphWeekVisitors', N'visitors', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @FirstCategory) OR (StatisticsCode = @SecondCategory))  
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 470, N'', N'{$reports_general.label_weeks$}', N'{$reports_visits.label_numofvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '07cb4b6c-4b4d-4be5-b97b-82191e82d64a', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (718, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN 
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 471, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofRegisteredUsers$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext></querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '3ac059d7-9e79-432d-becd-b9351340e635', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (719, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN 
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 472, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofRegisteredUsers$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '40942e9d-dd15-45b4-a0eb-275d95c94663', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (720, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN 
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 473, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofRegisteredUsers$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'a1e31dbd-fab0-475e-b127-201fd07fad02', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (721, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)           
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName) AND (StatisticsSiteID = CampaignSiteID) AND 
  (@CampaignName IS NULL OR @CampaignName IN ('''',CampaignName))
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 474, N'', N'{$reports_general.label_weeks$}', N'{$reports_campaign.label_num$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'baa3a874-890d-4a3c-ae67-2e0e3a0ae1aa', '20110921 17:48:37', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (722, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 476, N'', N'{$reports_general.label_weeks$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '6212e90b-8ff6-4281-94a3-6754c69f6050', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (723, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''week''', 0, N'line', 477, N'', N'{$reports_general.label_weeks$}', N'{$reports_aggviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '77f72646-49b0-4fa5-a204-e64d0424d376', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (724, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_WeekHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 477, N'{$reports_aggviewscult.piechart_caption$}', N'{$reports_general.label_weeks$}', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'f16aef8d-fb7b-4a12-933d-5d1e1bd27e66', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (725, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''Week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 478, N'', N'{$reports_general.label_weeks$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><xaxissort>True</xaxissort><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8e19b6ec-a5cd-4364-8bf5-ebe097aa5734', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (726, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''week''', 0, N'line', 479, N'', N'{$reports_general.label_weeks$}', N'{$reports_filedownloads.label_numofdownloads$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '195d49a7-804b-4297-b155-ff9989c16715', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (727, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_WeekHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 479, N'{$reports_filedownloadscult.piechart_caption$}', N'{$reports_general.label_weeks$}', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '964ee28a-c549-45e2-a625-48c124624877', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (728, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 480, N'', N'{$reports_general.label_weeks$}', N'{$reports_pagenotfound.label_numoffaults$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'eb1d9d87-4edb-43f4-9a53-253200e6aaf4', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (729, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 481, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'fb64fd4a-39e2-46a6-8192-a24e4c8d9e38', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (730, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''week''', 0, N'line', 482, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><chartareaborderstyle>Solid</chartareaborderstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '52421c3b-6bb0-4125-bdbd-78c366169b5c', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (731, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_WeekHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 482, N'{$reports_pageviewscult.piechart_caption$}', N'{$reports_general.label_weeks$}', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><querynorecordtext></querynorecordtext><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '8177e180-68be-4a4a-bf2a-31677d27fb78', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (732, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 483, N'', N'{$reports_general.label_weeks$}', N'{$reports_conversion.label_num$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '254d6391-e906-4542-8484-990813ce96fa', '20110727 14:46:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (736, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
   SELECT [Date] AS StartTime ,T1.Hits AS Hits  ,T1.Name AS Name
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (SELECT HitsStartTime AS Interval, SUM(HitsCount) AS Hits ,ABVariantDisplayName AS Name
  FROM Analytics_Statistics 
  INNER JOIN Analytics_MonthHits ON StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_ABVariant ON ABVariantName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode))  AND ABVariantSiteID = @CMSContextCurrentSiteID
  WHERE StatisticsSiteID = @CMSContextCurrentSiteID   AND  StatisticsCode LIKE ''abconversion;%'' 
  AND (@TestName IS NULL OR @TestName = ''''  OR  @TestName = SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14))
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,ABVariantDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
  
  EXEC Proc_Analytics_Pivot ''month''
  EXEC Proc_Analytics_RemoveTempTable', 0, N'', 431, N'Conversion count detail', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><yaxistitlecolor>#000000</yaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>y</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><legendtitle>Variants</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', 'a046fca0-b6b6-411c-930a-82eedc0f02c0', '20110927 12:45:05', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (737, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
     SELECT [Date] AS StartTime, SUM(HitsCount) AS Hits,X.Name AS Name
     
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates
    LEFT OUTER JOIN
      (SELECT  HitsStartTime, ConversionDisplayName AS Name, HitsCount FROM Analytics_MonthHits    
        INNER JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID                  
        INNER JOIN   Analytics_Conversion ON ConversionName = StatisticsObjectName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      AND StatisticsCode LIKE ''abconversion;%''
      AND (@VariationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) OR @VariationName IS NULL OR @VariationName = '''')
      AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)    
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY Name ,[Date]  
    
   EXEC Proc_Analytics_Pivot ''month''
   EXEC Proc_Analytics_RemoveTempTable', 0, N'', 465, N'Conversions by variants', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><yaxistitlecolor>#000000</yaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>y</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '79174a79-5d68-454c-9df1-64f8a1118b12', '20110927 12:43:02', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (739, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300)
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
     SELECT [Date] AS StartTime, SUM(HitsCount) AS Hits,X.Name AS Name
     
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates
    LEFT OUTER JOIN
      (SELECT  HitsStartTime, ConversionDisplayName AS Name, HitsCount FROM Analytics_HourHits    
        INNER JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID                  
        INNER JOIN   Analytics_Conversion ON ConversionName = StatisticsObjectName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      AND StatisticsCode LIKE ''abconversion;%''
      AND (@VariationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,14)+1,LEN (StatisticsCode)) OR @VariationName IS NULL OR @VariationName = '''')
      AND @TestName =  SUBSTRING(StatisticsCode, 14, CHARINDEX('';'',StatisticsCode,14)-14)    
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY Name ,[Date]  
    
   EXEC Proc_Analytics_Pivot ''hour''
   EXEC Proc_Analytics_RemoveTempTable', 0, N'', 468, N'Conversions by variants', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><yaxistitlecolor>#000000</yaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>g</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '9e966396-1977-482d-9880-ac1af7e8997b', '20110927 12:43:02', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (743, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime, COUNT(OrderDate) AS ''Orders''   FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates
  LEFT JOIN COM_Order  ON   
    ([Date] <= OrderDate  AND  DATEADD(WEEK,1,[Date]) > OrderDate) AND
    OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 489, N'', N'{$ecommerce.report_week$}', N'{$ecommerce.report_numberoforders$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'dbd2ea4f-8a7b-4607-891f-012a142e3940', '20110815 19:25:14', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (744, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  SELECT [Date] AS StartTime, COUNT(OrderDate) AS ''Orders''   FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates
  LEFT JOIN COM_Order  ON   
    ([Date] <= OrderDate  AND  DATEADD(HOUR,1,[Date]) > OrderDate) AND
    OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 490, N'', N'{$ecommerce.report_hour$}', N'{$ecommerce.report_numberoforders$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'd91cf134-4045-4bfc-9634-edd7eb104b67', '20110815 19:02:41', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (750, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SELECT [Date] AS StartTime, CAST(SUM(ISNULL(OrderTotalPriceInMainCurrency,0)) AS decimal(38,2)) AS ''Income'' FROM 
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates
  LEFT JOIN COM_Order
    ON Dates.Date = DATENAME(year, OrderDate)
      AND  OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 496, N'', N'{$ecommerce.report_year$}', N'{$ecommerce.report_income$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'a856a094-de10-4fde-b9dd-3f59b22fac40', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (751, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime, 
   CAST(SUM(ISNULL(OrderTotalPriceInMainCurrency,0)) AS decimal(38,2)) AS ''Income'' FROM 
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates
  LEFT JOIN COM_Order  ON   
    ([Date] <= OrderDate  AND  DATEADD(DAY,7,[Date]) > OrderDate) AND 
    OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 497, N'', N'{$ecommerce.report_week$}', N'{$ecommerce.report_income$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '410958a8-5357-4c01-95d0-8f35a6b67a68', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (752, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  SELECT [Date] AS StartTime,  CAST(SUM(ISNULL(OrderTotalPriceInMainCurrency,0)) AS decimal(38,2)) AS ''Income'' FROM 
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates
  LEFT JOIN COM_Order
    ON   ([Date] <= OrderDate  AND  DATEADD(MONTH,1,[Date]) > OrderDate)
    AND OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 498, N'', N'{$ecommerce.report_month$}', N'{$ecommerce.report_income$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '778012d0-1b2f-44e8-bf96-0a72d9e60a5a', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (753, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  SELECT [Date] AS StartTime,  CAST(SUM(ISNULL(OrderTotalPriceInMainCurrency,0)) AS decimal(38,2)) AS ''Income''  FROM 
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates
  LEFT JOIN COM_Order  ON   
    ([Date] <= OrderDate  AND  DATEADD(HOUR,1,[Date]) > OrderDate) AND 
    OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 499, N'', N'{$ecommerce.report_hour$}', N'{$ecommerce.report_income$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'dc9067e6-faf9-41ce-8b51-c3d7bed3a0c8', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (754, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  SELECT [Date] AS StartTime,  CAST(SUM(ISNULL(OrderTotalPriceInMainCurrency,0)) AS decimal(38,2)) AS ''Income'' FROM 
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates
  LEFT JOIN COM_Order  ON   
    ([Date] <= OrderDate  AND  DATEADD(DAY,1,[Date]) > OrderDate) AND 
    OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 500, N'', N'{$ecommerce.report_day$}', N'{$ecommerce.report_income$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '84db9b2a-3048-4ae6-ad1e-aa1b423be722', '20110727 14:46:51', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (761, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_YearHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 501, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '119ae3db-559e-412b-a7b7-ec14e4a837c3', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (763, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_MonthHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 502, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '6a67616d-c2de-4375-bc3d-b04f057352e4', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (764, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_WeekHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 503, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '5f388d45-d9cf-4ceb-a503-d5fd3fe2f3bc', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (765, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_DayHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 504, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '64faa6b7-d4f4-463a-b2cd-b1b14330e8b1', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (766, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_HourHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 505, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '45b5ceb3-a294-48c8-b412-03922c005d7a', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (767, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_YearHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 506, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'b0494765-c186-44ab-812e-dc2e5b61fae3', '20110727 14:46:55', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (768, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_MonthHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 507, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'b3303c22-41dd-4f51-a64d-b1d27605e3ff', '20110727 14:46:55', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (769, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_WeekHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 508, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '601e644c-2934-4184-bb23-abc076f3ea7d', '20110727 14:46:55', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (770, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_DayHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 509, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '226b5c91-7852-46e1-b5e2-81d41e148bcd', '20110727 14:46:55', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (771, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_HourHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 510, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'f1e7474c-2a94-446a-9025-91eb760b5d8f', '20110727 14:46:55', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (772, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_YearHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 511, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '058d8aad-8711-4324-a537-97c1a58943ee', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (773, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_MonthHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 512, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '2b0ad49a-a054-4a7e-9d91-467c96929e7f', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (774, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_WeekHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 513, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '097be3a4-2928-427f-ac6b-bc6440d20071', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (775, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_DayHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 514, N'', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '0d5728c2-d687-44ee-a73f-7de39c312d4c', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (776, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT ''{''+''$analytics_codename.'' + StatisticsObjectName + ''$}'' AS Name ,SUM (HitsCount) FROM Analytics_HourHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 515, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'fc392c68-ccfe-4254-8d3e-cb0d79b0577c', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (777, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectName AS Name  ,SUM (HitsCount) FROM Analytics_YearHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 516, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '8e451fc0-459d-4bf6-8210-b40ba97456d1', '20110727 14:46:55', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (779, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT  StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_MonthHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 518, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><xaxistitlecolor>#000000</xaxistitlecolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><showas3d>False</showas3d><querynorecordtext>No data found</querynorecordtext><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '7ae0ccaa-141b-448c-989c-d2cfbb60acce', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (780, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT  StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_WeekHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 519, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '58efc360-c4ef-44f0-854e-73139e3c1a83', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (781, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT  StatisticsObjectName  AS Name ,SUM (HitsCount) FROM Analytics_HourHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 520, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'e9ef5454-cff3-452b-be25-6c49035d9850', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (782, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_DayHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 521, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '173087c8-e320-4d77-80ee-e5f69a66d9f3', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (783, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectName AS Name  ,SUM (HitsCount) FROM Analytics_YearHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 522, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '3c52abc7-1c19-47f8-aae9-648338947824', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (784, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT  StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_MonthHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 523, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '76cc8404-a08f-4936-ab70-0e6ff68bb341', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (785, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT  StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_WeekHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 524, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '8ae2f7ab-0b1f-42d3-9dc1-ff5be15a98e1', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (786, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_DayHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 525, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '06e1930c-6584-409e-93dd-83c43c90c78c', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (787, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT  StatisticsObjectName  AS Name ,SUM (HitsCount) FROM Analytics_HourHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 526, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '14017bb7-5a69-4c90-b604-296e4815e241', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (788, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectName AS Name  ,SUM (HitsCount) FROM Analytics_YearHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 527, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '640d07ac-55ef-4ea7-989b-e1a0444dfa6c', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (789, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT  StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_MonthHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 528, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'db80d856-b1e6-4d88-8f62-5fbc407f8cdb', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (790, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT  StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_WeekHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 529, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'a7faabf2-f646-4209-9131-47b652a36bd7', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (791, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectName AS Name ,SUM (HitsCount) FROM Analytics_DayHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 530, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '674378d6-fcae-47ed-a6b5-e056460d8753', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (792, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT  StatisticsObjectName  AS Name ,SUM (HitsCount) FROM Analytics_HourHits JOIN Analytics_Statistics ON StatisticsID = HitsStatisticsID
  WHERE  (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = @CodeName) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
  GROUP BY StatisticsObjectName', 0, N'pie', 531, N'', N'Screen resolution', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '23ad0d0f-2057-4532-b0b6-d6859d787f8d', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (793, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 532, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'bcc18509-bd4a-43ad-bef6-f06bb009c651', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (794, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 533, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '4cd5723f-1041-45db-b06c-a535b8622359', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (795, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 534, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '90bcfd74-e314-40ca-8924-d8d9590574ae', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (796, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 535, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '903c58b3-ef1e-4a69-8909-8b37c31658c0', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (797, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 536, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '6db6455c-a492-4b74-bc5d-967b7c093612', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (798, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 537, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '11c5aca6-466e-4ed4-9687-1eaaff75713a', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (799, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 538, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'e4c8831c-3500-4c2a-bee4-0e0a49601e11', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (800, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 539, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '839a45f7-3e21-480a-ab57-635383862cc5', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (801, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 540, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '967d2bba-8c88-45fa-b900-c4e9e744e499', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (802, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 541, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8677f386-b438-4ebd-a0f5-fbe12176e01f', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (803, N'graph_pie', N'graph_pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_YearHits WHERE (StatisticsSiteID =@CMSContextCurrentSiteID) AND
((StatisticsCode = @Direct) OR (StatisticsCode = @Search) OR (StatisticsCode = @Reffering))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 543, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '1d51fdc4-2604-43e1-8a23-fc39b10448fe', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (804, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
  CREATE TABLE #AnalyticsTempTable (
    StartTime DATETIME,
    Hits INT,
    Name NVARCHAR(300) COLLATE database_default 
  );
  SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits,''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @Direct) OR (StatisticsCode = @Reffering)  OR (StatisticsCode = @Search))  
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]
  
   EXEC Proc_Analytics_Pivot ''year''', 0, N'line', 543, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><chartareaborderstyle>Solid</chartareaborderstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'a7394159-b926-415f-b35e-159d70922b7c', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (805, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
  CREATE TABLE #AnalyticsTempTable (
    StartTime DATETIME,
    Hits INT,
    Name NVARCHAR(300) COLLATE database_default 
  );
  SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits,''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''motnh'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @Direct) OR (StatisticsCode = @Reffering)  OR (StatisticsCode = @Search))  
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]
  
   EXEC Proc_Analytics_Pivot ''month''', 0, N'line', 544, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{y}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '1850d1b5-145d-4d03-8627-545985e9b1e4', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (806, N'graph_pie', N'graph_pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_MonthHits WHERE (StatisticsSiteID =@CMSContextCurrentSiteID) AND
((StatisticsCode = @Direct) OR (StatisticsCode = @Search) OR (StatisticsCode = @Reffering))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 544, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'baeff195-d459-4064-b1bc-583b71d04b9c', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (807, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
  CREATE TABLE #AnalyticsTempTable (
    StartTime DATETIME,
    Hits INT,
    Name NVARCHAR(300) COLLATE database_default 
  );
  SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits,''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @Direct) OR (StatisticsCode = @Reffering)  OR (StatisticsCode = @Search))  
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]
  
   EXEC Proc_Analytics_Pivot ''week''', 0, N'line', 545, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'bbda1486-1017-43ee-895c-1312fb003d20', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (808, N'graph_pie', N'graph_pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_WeekHits WHERE (StatisticsSiteID =@CMSContextCurrentSiteID) AND
((StatisticsCode = @Direct) OR (StatisticsCode = @Search) OR (StatisticsCode = @Reffering))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 545, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '628181c3-e70a-4160-b25b-d89da268e9c9', '20110727 14:46:54', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (809, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
  CREATE TABLE #AnalyticsTempTable (
    StartTime DATETIME,
    Hits INT,
    Name NVARCHAR(300) COLLATE database_default 
  );
  SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits,''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @Direct) OR (StatisticsCode = @Reffering)  OR (StatisticsCode = @Search))  
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]
  
   EXEC Proc_Analytics_Pivot ''day''', 0, N'line', 546, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><xaxissort>True</xaxissort><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '4b759b21-e3c9-4e3a-850a-9d9d0f7d3a96', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (810, N'graph_pie', N'graph_pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_DayHits WHERE (StatisticsSiteID =@CMSContextCurrentSiteID) AND
((StatisticsCode = @Direct) OR (StatisticsCode = @Search) OR (StatisticsCode = @Reffering))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 546, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '4c46d1bd-8209-4abd-84b0-7511e9e9b4bf', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (811, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
  CREATE TABLE #AnalyticsTempTable (
    StartTime DATETIME,
    Hits INT,
    Name NVARCHAR(300) COLLATE database_default 
  );
  SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)
 SELECT [Date] AS StartTime ,T1.Hits,''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND((StatisticsCode = @Direct) OR (StatisticsCode = @Reffering)  OR (StatisticsCode = @Search))  
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]
  
   EXEC Proc_Analytics_Pivot ''hour''', 0, N'line', 547, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8ab095f6-b16a-4168-882f-1fa814df28ae', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (812, N'graph_pie', N'graph_pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT ''{''+''$analytics_codename.'' + StatisticsCode + ''$}'' as Name,
SUM(HitsCount) as Count FROM Analytics_Statistics, Analytics_HourHits WHERE (StatisticsSiteID =@CMSContextCurrentSiteID) AND
((StatisticsCode = @Direct) OR (StatisticsCode = @Search) OR (StatisticsCode = @Reffering))
 AND (StatisticsID = HitsStatisticsID) AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsCode', 0, N'pie', 547, N'', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'e54e56f1-50f5-42bf-91de-069867d97124', '20110727 14:46:53', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (813, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 548, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><xaxistitlecolor>#000000</xaxistitlecolor><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><querynorecordtext></querynorecordtext><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '78ec232f-484e-41ab-a427-8fd3e0a178a1', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (817, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 550, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '67d1c26e-bcbc-4d42-8c98-b971f0f038b6', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (818, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 551, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext></querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '46850cbb-f3d0-46b8-9b5c-5f65cbe6bb21', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (819, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 552, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '45aa0d75-5f44-4915-92d2-9e3f8f39d259', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (820, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 553, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext></querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '95ddf31d-00a6-4a88-9f27-cd99db8f95e7', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (821, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 554, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><chartareaborderstyle>Solid</chartareaborderstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '2e5f8e45-1663-4ddc-8573-c3d7951ef0e1', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (822, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 555, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><querynorecordtext></querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '3331bf1b-6a1d-4826-96ea-0e7846faab72', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (823, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 556, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><querynorecordtext></querynorecordtext><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '06b4b080-2c3f-4a6d-b21c-b466810e0c60', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (824, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 557, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><querynorecordtext></querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '413a0b00-0d89-4582-989f-1902af1a2f7e', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (826, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsCode
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
  AND (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsCode) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 559, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><querynorecordtext></querynorecordtext><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '370f2b76-b555-430b-a241-703c38afbd16', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (828, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''year''', 0, N'line', 568, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ae2c90f9-9bc4-4080-9555-fdf72e04fb8f', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (829, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_YearHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 568, N'{$reports_exitpage.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'fbf9d38f-83e9-4d87-96f1-dbc43fdc6970', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (830, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''month''', 0, N'line', 569, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '938375bf-5964-4559-9d45-93797e2dd26a', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (831, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_MonthHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 569, N'{$reports_exitpage.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'a3909d53-99ab-4ac7-a640-fd58bc856ae5', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (832, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''week''', 0, N'line', 570, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '54e8cdc8-232e-4026-862b-e57a3e2d02ed', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (833, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_WeekHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 570, N'{$reports_exitpage.piechart_caption$}', N'{$reports_general.label_weeks$}', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '4925af9d-daac-4483-9502-130a891e5ca1', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (834, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''day''', 0, N'line', 571, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'afa5152b-37df-4acf-9e60-a22c1fa54680', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (835, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_DayHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 571, N'{$reports_exitpage.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'ece32164-933d-448d-a6b6-69a6068d5037', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (836, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''hour''', 0, N'line', 572, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '286685a6-546b-4426-9518-337f3786e485', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (837, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_HourHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 572, N'{$reports_exitpage.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '0dd85129-23ae-491c-be06-a1b93c2dcc4c', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (838, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''year''', 0, N'line', 573, N'', N'{$reports_general.label_years$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><xaxissort>True</xaxissort><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '84696422-5e43-4189-97f8-55cedf316277', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (839, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_YearHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 573, N'{$reports_landingpage.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><xaxistitlecolor>#000000</xaxistitlecolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><querynorecordtext></querynorecordtext><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'cca7574d-80c9-4518-aadc-eb6b0d97a51b', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (840, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''month''', 0, N'line', 574, N'', N'{$reports_general.label_months$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><legendfixedposition></legendfixedposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '491d89a3-3c06-44d0-b2e1-fd45ef3fa188', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (841, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''month'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_MonthHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 574, N'{$reports_landingpage.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '35053996-2ae6-4c9b-9fca-d3cf37e51113', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (842, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''week''', 0, N'line', 575, N'', N'{$reports_general.label_weeks$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><xaxistitlecolor>#000000</xaxistitlecolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><querynorecordtext>No data found</querynorecordtext><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '59d441e6-385f-4669-9a84-db27a1e564bf', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (843, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_WeekHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 575, N'{$reports_landingpage.piechart_caption$}', N'{$reports_general.label_weeks$}', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><chartareaborderstyle>Solid</chartareaborderstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '2c1dcd77-1559-4bee-a60c-75b6dbcc7531', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (844, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''day''', 0, N'line', 576, N'', N'{$reports_general.label_days$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '88e8b21e-2478-499d-8f99-668ec3a75398', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (845, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''day'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_DayHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 576, N'{$reports_landingpage.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'b99f8b2a-00bc-4f70-aa1c-448e06b99a5a', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (846, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits,StatisticsObjectCulture AS Name INTO #AnalyticsTempTable
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits,StatisticsObjectCulture
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime,StatisticsObjectCulture) AS T1
  ON T1.StartTime = [Date]
  
  EXEC Proc_Analytics_Pivot ''hour''', 0, N'line', 577, N'', N'{$reports_general.label_hours$}', N'{$reports_pageviews.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ce5133da-7c67-4ba2-9c24-1008eeae3857', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (847, N'graph_pie', N'graph pie', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''hour'');
SELECT StatisticsObjectCulture , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_HourHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate)
 GROUP BY StatisticsObjectCulture
 ORDER BY StatisticsObjectCulture', 0, N'pie', 577, N'{$reports_landingpage.piechart_caption$}', N'', N'', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>True</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', 'a2dd374e-5fce-4e01-a839-c64b48490e13', '20110727 14:47:00', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (852, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 561, N'', N'{$reports_general.label_years$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'd8e5978c-92cd-4f30-a22f-9f25e23dce6c', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (853, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 565, N'', N'{$reports_general.label_months$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '991d4f8a-1f22-47bc-8f9c-bf40938ecb7a', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (854, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 562, N'', N'{$reports_general.label_weeks$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '549893d6-4b76-4a2b-b5d8-5bc2b3838b13', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (855, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 563, N'', N'{$reports_general.label_days$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '722cbb58-8b46-445b-b2ff-dec9ac289f18', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (856, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 564, N'', N'{$reports_general.label_hours$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'dd11ec8f-7982-4200-8322-ebd15f2405e7', '20110727 14:46:59', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (857, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 578, N'', N'{$reports_general.label_years$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'fb99e1ba-1646-4488-afdb-a3c5037481e7', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (858, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 580, N'', N'{$reports_general.label_months$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '6b15168a-452c-4c6e-8e09-7110e4cb2360', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (859, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
 SELECT CONVERT (NVARCHAR(2),DATEPART(wk,[Date]))+''/''+CONVERT (NVARCHAR(4),DATEPART(YEAR,[Date])) AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 579, N'', N'{$reports_general.label_weeks$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'cac18ebd-ba2d-4926-8f14-83949f447557', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (860, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 581, N'', N'{$reports_general.label_hours$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '988e9c32-81ee-48e6-823c-aee7ce3d1999', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (861, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
 SELECT [Date] AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = @CodeName)
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 582, N'', N'{$reports_general.label_days$}', N'{$reports_searchkeywords.label_numofpageviews$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'e1814922-9247-4b4f-a7f5-1bea22c5f37c', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (862, N'graphViews', N'Page views', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''{%Interval|(default)year%}'');
 
 SELECT {%Columns|(default)Date%} AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''{%Interval|(default)year%}'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN {%AnalyticsTable|(default)Analytics_YearHits%} ON {%AnalyticsTable|(default)Analytics_YearHits%}.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''pageviews'') AND StatisticsObjectID = @NodeID AND StatisticsObjectCulture = @CultureCode
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 583, N'{$reports.pageviews$}', N'{%XAxisTitle%}', N'{$reports.pageviews$}', 600, 300, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{%xValueFormat%} - #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{%XAxisFormat%}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '383699d9-711c-4593-95d7-6b9196ef32ff', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (863, N'graphLanding', N'Landing page', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''{%Interval|(default)year%}'');
 
 SELECT {%Columns|(default)Date%} AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''{%Interval|(default)year%}'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN {%AnalyticsTable|(default)Analytics_YearHits%} ON {%AnalyticsTable|(default)Analytics_YearHits%}.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''landingpage'') AND StatisticsObjectID = @NodeID AND StatisticsObjectCulture = @CultureCode
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 583, N'{$reporting.landingpage$}', N'{%XAxisTitle%}', N'{$general.count$}', 600, 300, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{%xValueFormat%} - #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{%XAxisFormat%}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '7cc7e7da-f81b-48c5-b9ae-829a2dcf2c22', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (864, N'graphexit', N'Exit page', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''{%Interval|(default)year%}'');
 
 SELECT {%Columns|(default)Date%} AS StartTime ,T1.Hits FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''{%Interval|(default)year%}'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN {%AnalyticsTable|(default)Analytics_YearHits%} ON {%AnalyticsTable|(default)Analytics_YearHits%}.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''exitpage'') AND StatisticsObjectID = @NodeID AND StatisticsObjectCulture = @CultureCode
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 583, N'{$reporting.exitpage$}', N'{%XAxisTitle%}', N'{$general.count$}', 600, 300, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{%xValueFormat%} - #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{%XAxisFormat%}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ed26b2f8-c313-471b-9828-37ae5197c4de', '20110727 14:46:58', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (865, N'graphAvg', N'Average time on page', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''{%Interval|(default)year%}'');
 
 SELECT {%Columns|(default)Date%} AS StartTime , T1.Hits   AS Time FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''{%Interval|(default)year%}'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime, SUM(HitsValue) / SUM(HitsCount) AS hits
  FROM Analytics_Statistics
  INNER JOIN {%AnalyticsTable|(default)Analytics_YearHits%} ON {%AnalyticsTable|(default)Analytics_YearHits%}.HitsStatisticsID = Analytics_Statistics.StatisticsID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''avgtimeonpage'') AND StatisticsObjectID = @NodeID AND StatisticsObjectCulture = @CultureCode
  GROUP BY HitsStartTime) AS T1
  ON T1.StartTime = [Date]', 0, N'line', 583, N'{$reports_pageviews.average$}', N'{%XAxisTitle%}', N'{$reports_pageviews.average$} [s]', 600, 300, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{%xValueFormat%} - #SER: {%yval|(divide)3600|(toint)|(format){0:00}%}:
{%round(yval/60)|(format){0:00}%}:{%modulo(round(yval),60)|(format){0:00}%} 
</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{%XAxisFormat%}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'e04c141b-c004-4a0d-8f40-aa68ad9dcc08', '20110926 12:30:29', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1032, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 608, N'', N'{$reports_general.label_years$}', N'{$conversion.count$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><yaxistitle>{$conversion.count$}</yaxistitle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%CampaignName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '7e07cbe1-e40b-4f55-9b08-a4c4e1dcd847', '20120207 10:26:07', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1033, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 609, N'', N'{$reports_general.label_weeks$}', N'{$conversion.count$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><yaxistitle>{$conversion.count$}</yaxistitle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><seriesbordersize>2</seriesbordersize><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><xaxislabelfont></xaxislabelfont><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8144b81a-c6e4-49f1-b81d-e83939ce49cb', '20120207 10:26:23', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1034, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 610, N'', N'{$reports_general.label_days$}', N'{$conversion.count$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><yaxistitle>{$conversion.count$}</yaxistitle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><seriesbordersize>2</seriesbordersize><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><xaxislabelfont></xaxislabelfont><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '38d1a20a-9262-49b2-af47-1ce6f81e8ceb', '20120207 10:27:14', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1035, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 611, N'', N'{$reports_general.label_months$}', N'{$conversion.count$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><yaxistitle>{$conversion.count$}</yaxistitle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><seriesbordersize>2</seriesbordersize><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><xaxislabelfont></xaxislabelfont><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '9405d841-51cb-49b3-9938-da5bb759ea1a', '20120207 10:26:39', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1036, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 612, N'', N'{$reports_general.label_hours$}', N'{$conversion.count$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><xaxistitlecolor>#000000</xaxistitlecolor><yaxistitle>{$conversion.count$}</yaxistitle><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><legendposition>Bottom</legendposition><rotatex></rotatex><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><querynorecordtext></querynorecordtext><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '704e6c23-f9e3-4ae4-974e-a7b546b50de9', '20120207 10:26:57', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1037, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 608, N'Conversions count', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><legendposition>None</legendposition><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>yyyy</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat></itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '50b4a431-142d-4cba-8658-bba1cf2bd181', '20110830 16:21:52', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1038, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 609, N'Conversions count', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><legendposition>None</legendposition><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat></seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%yval%}</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '8d7bcf73-0637-4204-923b-e9686f691339', '20110830 16:21:53', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1039, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 611, N'Conversions count', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><legendposition>None</legendposition><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>y</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%yval%}</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', 'd5691b9f-acfb-458d-bb45-a9f3e2892954', '20110830 16:21:52', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1040, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 612, N'Conversions count', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><legendposition>None</legendposition><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>g</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%yval%}</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '3c209e75-23d0-4e0f-9a43-ce7e8386fd53', '20110830 16:21:53', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1041, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 610, N'Conversions count', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><legendposition>None</legendposition><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>g</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><legendtitle>Conversions </legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '0b6ff49c-8419-4f54-86f5-a831eb0779ef', '20110830 16:21:53', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1042, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND 
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 614, N'', N'{$reports_general.label_years$}', N'{$om.trackconversionvalue$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%CampaignName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><yaxistitle>{$om.trackconversionvalue$}</yaxistitle><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><legendbordercolor>#000000</legendbordercolor><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '3bb39143-076d-4862-a7dd-a35c197dd87f', '20120207 09:33:27', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1043, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name INTO #AnalyticsTempTable  
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''', 0, N'', 614, N'Conversions value', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>yyyy</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '6c3f97e8-f811-4f5d-b171-a17cb9e11772', '20110727 14:46:56', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1044, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 615, N'', N'{$reports_general.label_weeks$}', N'{$om.trackconversionvalue$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><seriesborderstyle>Solid</seriesborderstyle><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><yaxistitle>{$om.trackconversionvalue$}</yaxistitle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><xaxislabelfont></xaxislabelfont><pieothervalue></pieothervalue></customdata>', '4ac2f798-3fa0-42f3-83fa-3f3ceeeeaf32', '20120207 10:20:27', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1045, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name INTO #AnalyticsTempTable  
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''week''', 0, N'', 615, N'Conversions value', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat></seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%yval%}</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', 'fe75e77b-4063-419c-b3e1-b0b06ec9f993', '20110727 14:46:56', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1046, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 616, N'', N'{$reports_general.label_months$}', N'{$om.trackconversionvalue$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><seriesborderstyle>Solid</seriesborderstyle><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><yaxistitle>{$om.trackconversionvalue$}</yaxistitle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><xaxislabelfont></xaxislabelfont><pieothervalue></pieothervalue></customdata>', 'e8f7299a-11f5-4db9-85c5-b5e1827fba93', '20120207 10:21:09', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1047, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name INTO #AnalyticsTempTable  
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''month''', 0, N'', 616, N'Conversions value', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>y</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%yval%}</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', 'c14c7d3b-f98c-40b7-bcf2-e8b58ac80bbc', '20110727 14:46:56', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1048, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 617, N'', N'{$reports_general.label_hours$}', N'{$om.trackconversionvalue$}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><legendposition>Bottom</legendposition><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><rotatex></rotatex><rotatey></rotatey><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><querynorecordtext></querynorecordtext><yaxistitle>{$om.trackconversionvalue$}</yaxistitle><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><legendbordercolor>#000000</legendbordercolor><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '839ed4bf-f672-4ebc-982a-adc19f0ff8c8', '20120207 10:22:04', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1049, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name INTO #AnalyticsTempTable  
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''hour''', 0, N'', 617, N'Conversions value', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>g</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%yval%}</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '64145833-0155-4205-a057-69070d44b2c3', '20110727 14:46:56', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1050, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)        
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,
   CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
   END
  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
        AND CampaignName = @CampaignName  AND CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')  AND 
  (@CampaignName IN ('''',CampaignName) OR @CampaignName IS NULL) AND
  (@ConversionName IN ('''',ConversionName) OR @ConversionName IS NULL)  
  
  GROUP BY HitsStartTime,CampaignName,
     CASE
    WHEN @ConversionName = '''' THEN CampaignDisplayName
    ELSE ConversionDisplayName
     END
  ) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 618, N'', N'{$reports_general.label_days$}', N'{$om.trackconversionvalue$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><seriesborderstyle>Solid</seriesborderstyle><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><yaxistitle>{$om.trackconversionvalue$}</yaxistitle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><legendfixedposition></legendfixedposition><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><xaxislabelfont></xaxislabelfont><pieothervalue></pieothervalue></customdata>', 'b591328d-774e-489b-b1e8-93831e0117a0', '20120207 10:23:47', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1051, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name INTO #AnalyticsTempTable  
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''day''', 0, N'', 618, N'Conversions value', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>g</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%yval%}</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', 'd7898061-96a9-4e64-9f99-86e03d5c129f', '20110727 14:46:55', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1052, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)   
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,
  CASE
  WHEN @Goal=''value'' THEN SUM(HitsValue)
  ELSE SUM(HitsCount)
  END    
  AS hits
  ,  
  CampaignDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID    
  INNER JOIN Analytics_Campaign ON (@Goal <> ''view'' AND StatisticsCode LIKE @Codename AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName)
        OR (@Goal=''view'' AND StatisticsObjectName = CampaignName) AND StatisticsSiteID = CampaignSiteID
  
  WHERE (StatisticsSiteID = @SiteID OR @SiteID = 0) AND
  (StatisticsCode LIKE @CodeName)   
  AND (@Goal = ''view'' OR @ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName
  )
  AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 619, N'', N'{$reports_general.label_years$}', N'{%ColumnName|(default)Hits%}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%CampaignName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><xaxistitlecolor>#000000</xaxistitlecolor><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><querynorecordtext>No data found</querynorecordtext><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '27329f55-2171-4a80-b0d3-7a924313a898', '20110927 11:22:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1053, N'graph_detail', N'graph_detail', N'', 0, N'', 619, N'', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>yyyy</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat></itemvalueformat><legendtitle></legendtitle><displaylegend>False</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>true</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '4f394a48-6fa5-40a2-952f-141d1f26fca0', '20110830 12:00:49', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1054, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)   
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,
  CASE
  WHEN @Goal=''value'' THEN SUM(HitsValue)
  ELSE SUM(HitsCount)
  END    
  AS hits
  ,  
  CampaignDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID    
  INNER JOIN Analytics_Campaign ON (@Goal <> ''view'' AND StatisticsCode LIKE @Codename AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName)
        OR (@Goal=''view'' AND StatisticsObjectName = CampaignName) AND StatisticsSiteID = CampaignSiteID
  
  WHERE (StatisticsSiteID = @SiteID OR @SiteID = 0) AND
  (StatisticsCode LIKE @CodeName)   
  AND (@Goal = ''view'' OR @ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName
  )
  AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 620, N'', N'{$reports_general.label_months$}', N'{%ColumnName|(default)Hits%}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><chartareaborderstyle>Solid</chartareaborderstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%CampaignName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '0e740b1a-bdbd-4e1d-b25f-05f9d726bbb0', '20110927 11:22:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1055, N'graph_detail_1', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name INTO #AnalyticsTempTable  
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 20, LEN(StatisticsCode)-19) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''', 0, N'', 620, N'', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>yyyy</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat></itemvalueformat><legendtitle></legendtitle><displaylegend>False</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>true</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '5b163ada-df18-4c25-a290-d6f58a17d2c9', '20110727 14:46:55', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1056, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)   
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,
  CASE
  WHEN @Goal=''value'' THEN SUM(HitsValue)
  ELSE SUM(HitsCount)
  END    
  AS hits
  ,  
  CampaignDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID    
  INNER JOIN Analytics_Campaign ON (@Goal <> ''view'' AND StatisticsCode LIKE @Codename AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName)
        OR (@Goal=''view'' AND StatisticsObjectName = CampaignName) AND StatisticsSiteID = CampaignSiteID
  
  WHERE (StatisticsSiteID = @SiteID OR @SiteID = 0) AND
  (StatisticsCode LIKE @CodeName)   
  AND (@Goal = ''view'' OR @ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName
  )
  AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 621, N'', N'{$reports_general.label_weeks$}', N'{%ColumnName|(default)Hits%}', 700, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><rotatey></rotatey><yaxisformat></yaxisformat><rotatex></rotatex><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%CampaignName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'bb777522-4c04-44ee-a886-60f05b32106f', '20110927 11:22:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1058, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)   
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,
  CASE
  WHEN @Goal=''value'' THEN SUM(HitsValue)
  ELSE SUM(HitsCount)
  END    
  AS hits
  ,  
  CampaignDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID    
  INNER JOIN Analytics_Campaign ON (@Goal <> ''view'' AND StatisticsCode LIKE @Codename AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName)
        OR (@Goal=''view'' AND StatisticsObjectName = CampaignName) AND StatisticsSiteID = CampaignSiteID
  
  WHERE (StatisticsSiteID = @SiteID OR @SiteID = 0) AND
  (StatisticsCode LIKE @CodeName)   
  AND (@Goal = ''view'' OR @ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName
  )
  AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 622, N'', N'{$reports_general.label_days$}', N'{%ColumnName|(default)Hits%}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%CampaignName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '50b1273e-223c-4610-b8e9-12477d539345', '20110927 11:22:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1059, N'graph_detail_3', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name INTO #AnalyticsTempTable  
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 20, LEN(StatisticsCode)-19) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''', 0, N'', 622, N'', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>yyyy</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat></itemvalueformat><legendtitle></legendtitle><displaylegend>False</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>true</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '46d2c292-23aa-477b-8686-dd4825468d15', '20110727 14:46:55', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1060, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)   
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name   
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,
  CASE
  WHEN @Goal=''value'' THEN SUM(HitsValue)
  ELSE SUM(HitsCount)
  END    
  AS hits
  ,  
  CampaignDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID    
  INNER JOIN Analytics_Campaign ON (@Goal <> ''view'' AND StatisticsCode LIKE @Codename AND SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName)
        OR (@Goal=''view'' AND StatisticsObjectName = CampaignName) AND StatisticsSiteID = CampaignSiteID
  
  WHERE (StatisticsSiteID = @SiteID OR @SiteID = 0) AND
  (StatisticsCode LIKE @CodeName)   
  AND (@Goal = ''view'' OR @ConversionName IS NULL OR @ConversionName IN ('''',StatisticsObjectName))
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName
  )
  AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 623, N'', N'{$reports_general.label_hours$}', N'{%ColumnName|(default)Hits%}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%CampaignName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'af23887d-ea78-4268-a08a-d8dfcd20f101', '20110927 11:22:12', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1061, N'graph_detail_4', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  
 SELECT [Date] AS StartTime ,T1.Hits,T1.ConversionDisplayName AS Name INTO #AnalyticsTempTable  
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,ConversionDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE @CodeName+'';%'')
  AND SUBSTRING(StatisticsCode, 20, LEN(StatisticsCode)-19) = @CampaignName  
  GROUP BY HitsStartTime,ConversionDisplayName) AS T1
  ON T1.StartTime = [Date]  
  
 EXEC Proc_Analytics_Pivot ''year''', 0, N'', 623, N'', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>yyyy</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat></itemvalueformat><legendtitle></legendtitle><displaylegend>False</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>true</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', 'cd1a6c4b-091f-4aea-90ab-cc894992cef8', '20110727 14:46:55', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1120, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 631, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><chartareaborderstyle>Solid</chartareaborderstyle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '96e05610-5dde-4e0e-9d22-70f996f5706e', '20110927 13:03:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1121, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 632, N'Conversions count', N'', N'', 800, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle></customdata>', '362817ba-850c-47a2-8c68-1ad463aff0dc', '20110927 13:03:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1122, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 633, N'Conversions count', N'', N'', 800, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'c24c1337-05a7-42da-ae4e-1dd012198c4b', '20110927 13:03:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1123, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 634, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><chartareaborderstyle>Solid</chartareaborderstyle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '3a0520e8-6b56-4bdf-a1df-4bcbd5b788a0', '20110927 13:03:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1124, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 635, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '3f0ffee6-bada-45b2-a88a-a853b1e02ecb', '20110927 13:03:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1324, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = OM_MVTest.MVTestName OR @MVTestName ='''')
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 653, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8baefa5b-e230-4db9-9fd0-011a24af6a4e', '20110927 13:05:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1325, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = OM_MVTest.MVTestName OR @MVTestName ='''')
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 654, N'Conversions value', N'', N'', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><rotatex></rotatex><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><xaxissort>True</xaxissort><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxistitleposition>Center</xaxistitleposition><querynorecordtext>No data found</querynorecordtext><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '1675ace8-3af9-4e20-a3e1-b9ed2d795a48', '20110927 13:05:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1326, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = OM_MVTest.MVTestName OR @MVTestName ='''')
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 655, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'cee34788-36e1-44ec-9d2f-c70dd688f32e', '20110927 13:05:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1327, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = OM_MVTest.MVTestName OR @MVTestName ='''')
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 656, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '4d719e2d-066e-47a0-a356-102fef1c7ff1', '20110927 13:05:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1328, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = OM_MVTest.MVTestName OR @MVTestName ='''')
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 657, N'Conversions value', N'', N'', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'cdaae363-dbe5-4065-9df2-2d96a5af692c', '20110927 13:05:30', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1329, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_YearHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IN('''',MVTestName) OR @MVTestName IS NULL)
   AND (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_YearHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR 
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name = 
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
 EXEC Proc_Analytics_Pivot ''year'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 658, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><yaxisformat>{0:0\%}</yaxisformat><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8bd9afdc-5e7e-4993-8b91-62256e45baa7', '20110927 13:04:22', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1330, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_DayHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IN('''',MVTestName) OR @MVTestName IS NULL)
   AND (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_DayHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR 
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name = 
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
 EXEC Proc_Analytics_Pivot ''day'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 659, N'Conversions rate', N'', N'', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0:0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'fffdeb1a-6e3f-4f1e-986c-67e86df166d6', '20110927 13:04:23', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1331, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_HourHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IN('''',MVTestName) OR @MVTestName IS NULL)
   AND (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_HourHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR 
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name = 
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
 EXEC Proc_Analytics_Pivot ''hour'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 660, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><querynorecordtext>No data found</querynorecordtext><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle></legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat>{0:0\%}</yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '75841323-8cd4-4955-b1cc-750dae4ebe94', '20110927 13:04:23', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1332, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_MonthHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IN('''',MVTestName) OR @MVTestName IS NULL)
   AND (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_MonthHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR 
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name = 
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
 EXEC Proc_Analytics_Pivot ''month'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 661, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><chartareaborderstyle>Solid</chartareaborderstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat>{0:0\%}</yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'f3f32c2b-2263-454f-99d5-02dd2460316d', '20110927 13:04:22', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1333, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_WeekHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IN('''',MVTestName) OR @MVTestName IS NULL)
   AND (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT SUM (HitsCount) FROM Analytics_Statistics
   JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_WeekHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR 
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name = 
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
 EXEC Proc_Analytics_Pivot ''week'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 662, N'Conversions rate', N'', N'', 800, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0:0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont>Arial;regular;8;;</xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'c9843bf8-6d34-4635-bce2-14ba8e9a8a71', '20110927 13:04:22', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1334, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 663, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', 'c152f348-b171-495d-98fc-673c82c91334', '20110927 12:53:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1335, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
   
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR @ConversionName ='''')
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'bar', 663, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>yyyy</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser%}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><chartareaborderstyle>Solid</chartareaborderstyle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><xaxislabelfont></xaxislabelfont><rotatex></rotatex><rotatey></rotatey><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><pieothervalue></pieothervalue><scalemax></scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Combinations</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '72b983ee-74bd-4ec0-96d5-b16b3c10cd31', '20110927 12:55:02', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1336, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 664, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '8b48b96b-c6ea-4dfd-9cc8-cb0be9d1e855', '20110927 12:53:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1337, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
   
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR @ConversionName ='''')
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'bar', 664, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser%}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><yaxisformat></yaxisformat><rotatex></rotatex><rotatey></rotatey><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><yaxisusexaxissettings>True</yaxisusexaxissettings><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle>Combinations</legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '76810b53-7b78-4852-ae6d-c24f08f2a5b9', '20110927 12:55:03', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1338, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 665, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><seriessymbols>Circle</seriessymbols><seriesgradient>None</seriesgradient><legendposition>Bottom</legendposition><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '51295d41-a841-4aca-b23a-a5acb9265441', '20110927 12:53:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1339, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
   
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR @ConversionName ='''')
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 665, N'Conversion count detail', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>y</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><legendtitle>Combinations</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>true</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '19a035b7-91a1-4d13-939e-7ce706c10e8b', '20110927 12:55:03', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1340, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 666, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '9b5fbbde-7066-4ab8-a9c1-240730550b3b', '20110927 12:53:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1341, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
   
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR @ConversionName ='''')
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'bar', 666, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>g</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><xaxisformat>g</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><pieothervalue></pieothervalue><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendtitle>Combinations</legendtitle><querynorecordtext>No data found</querynorecordtext><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '5811d5c5-733f-407f-aebc-df2977932d72', '20110927 12:55:03', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1344, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionNAme IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 668, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '2e162d02-66c0-4a39-9e6d-ea133bc097ef', '20110927 12:53:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1345, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
   
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsCount) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName IS NULL OR @ConversionName ='''')
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'bar', 668, N'Conversions count', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><pieothervalue></pieothervalue><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser%}</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><xaxislabelfont></xaxislabelfont><rotatex></rotatex><rotatey></rotatey><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendtitle>Combinations</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '27282198-61e5-4f69-aaac-cf425d5c16f2', '20110927 12:55:03', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1346, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 669, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '821b4eca-ba4c-4db7-b04a-883d6b441cbd', '20110927 12:55:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1347, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Year'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName ='''' OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 669, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><pieothervalue></pieothervalue><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>yyyy</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><displaylegend>True</displaylegend><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><legendposition>Right</legendposition><xaxislabelfont></xaxislabelfont><rotatex></rotatex><rotatey></rotatey><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><scalemin></scalemin><exportenabled>True</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle>Combinations</legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '5fcceb2d-d9ae-474a-83de-4756a3323caa', '20110927 12:57:33', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1348, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 670, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '61bbaf91-e406-45e0-b923-0f2215302350', '20110927 12:55:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1349, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Day'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName ='''' OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 670, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><xaxisformat>d</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><xaxislabelfont></xaxislabelfont><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendtitle>Combinations</legendtitle><querynorecordtext>No data found</querynorecordtext><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'be1b3213-2f0c-43d8-9fa9-96d8e4dc7bac', '20110927 12:57:33', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1350, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 671, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '7a0a6289-e722-48fd-920e-7cacf65eb567', '20110927 12:55:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1351, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Hour'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName ='''' OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 671, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>g</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendtitle>Combinations</legendtitle><xaxistitlecolor>#000000</xaxistitlecolor><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><querynorecordtext>No data found</querynorecordtext><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'b0a39e8d-b3f0-4681-af51-66c3bc2dd7da', '20110927 12:57:33', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1352, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 672, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><querynorecordtext>No data found</querynorecordtext><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareabordercolor>#bbbbbb</chartareabordercolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8acc669a-2fe9-4a1a-968d-08722295622b', '20110927 12:55:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1353, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Month'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName ='''' OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 672, N'Conversion count value', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>y</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><legendtitle>Combinations</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', 'a36539cb-5678-44fc-a72a-74095d256658', '20110927 12:57:33', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1354, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (
  SELECT HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,OM_MVTest.MVTestDisplayName AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_MVTest ON OM_MVTest.MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND MVTestSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%''
  AND (@MVTestName IS NULL OR @MVTestName = '''' OR @MVTestName = OM_MVTest.MVTestName)
  AND (@ConversionName IS NULL OR @ConversionName = '''' OR @ConversionName = StatisticsObjectName)
  GROUP BY HitsStartTime,OM_MVTest.MVTestDisplayName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 673, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'be04f52f-f354-4732-bc68-0a1b2e0a6793', '20110927 12:55:50', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1355, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name) 
 
 SELECT [Date] AS StartTime ,T1.Hits AS Hits ,T1.Name AS Name 
FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''Week'') AS Dates
 LEFT JOIN
  (
  SELECT
  HitsStartTime AS Interval,
  SUM(HitsValue) AS Hits ,
    CASE 
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name
  
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
  INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)    
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID ) AND StatisticsCode LIKE ''mvtconversion;%'' AND
  MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
  @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND
  (StatisticsObjectName = @ConversionName OR @ConversionName ='''' OR @ConversionName IS NULL)
  GROUP BY HitsStartTime,MVTCombinationName,MVTCombinationCustomName
  ) AS T1
 ON Dates.Date=T1.Interval;
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 673, N'Conversions value', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat></seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Combinations</legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'a9dd2f30-ad71-4e5a-ac0e-5e41d0f50a09', '20110927 12:57:33', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1356, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_YearHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IS NULL OR @MVTestName =MVTestName OR @MVTestName ='''')
   AND (@ConversionName = StatisticsObjectName OR @ConversionName = '''' OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
         
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_YearHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
   EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 674, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY%</seriesitemtooltip><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '0225bf8f-e9d1-43ed-93db-84384fc01086', '20110927 13:01:36', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1357, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  Page NVARCHAR(300) COLLATE database_default,
  Culture NVARCHAR(300) COLLATE database_default
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,Page,Culture)  
 
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name,Page,Culture
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime,
    CASE
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name,  
   OM_MVTest.MVTestPage AS Page,OM_MVTest.MVTestCulture AS Culture
   FROM Analytics_YearHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)  
   
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID AND
   MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
   @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND   
   (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name,Page,Culture
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_YearHits ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_YearHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath = Page AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture = Culture OR Culture IS NULL)         
   )*100
   
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Page
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture
   
   EXEC Proc_Analytics_Pivot ''year'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 674, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat>yyyy</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><displaylegend>True</displaylegend><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><legendposition>Right</legendposition><legendtitle>Combinations</legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><exportenabled>true</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><seriesitemtooltip>{%ser%}</seriesitemtooltip><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '0b1b7b7c-4745-4d5e-b13e-d19f653bbc17', '20110927 13:02:19', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1358, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_WeekHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IS NULL OR @MVTestName =MVTestName OR @MVTestName ='''')
   AND (@ConversionName = StatisticsObjectName OR @ConversionName = '''' OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
         
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_WeekHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
   EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 675, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '0314f58b-c94b-44f1-a2e1-8102a8f5b111', '20110927 13:01:36', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1359, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  Page NVARCHAR(300) COLLATE database_default,
  Culture NVARCHAR(300) COLLATE database_default
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,Page,Culture)  
 
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name,Page,Culture
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime,
    CASE
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name,  
   OM_MVTest.MVTestPage AS Page,OM_MVTest.MVTestCulture AS Culture
   FROM Analytics_WeekHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)  
   
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID AND
   MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
   @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND   
   (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name,Page,Culture
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_WeekHits ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_WeekHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath = Page AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture = Culture OR Culture IS NULL)         
   )*100
   
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Page
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture
   
   EXEC Proc_Analytics_Pivot ''week'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 675, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat></seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Combinations</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', 'b7302c4c-3379-4d88-8267-e1e8f8714cc9', '20110927 13:02:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1360, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_MonthHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IS NULL OR @MVTestName =MVTestName OR @MVTestName ='''')
   AND (@ConversionName = StatisticsObjectName OR @ConversionName = '''' OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
         
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_MonthHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
   EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 676, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>#VALX{y}  -  #SER: #VALY%</seriesitemtooltip><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '19236b36-d54c-4234-b516-25857bd240ef', '20110927 13:01:36', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1361, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  Page NVARCHAR(300) COLLATE database_default,
  Culture NVARCHAR(300) COLLATE database_default
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,Page,Culture)  
 
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name,Page,Culture
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime,
    CASE
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name,  
   OM_MVTest.MVTestPage AS Page,OM_MVTest.MVTestCulture AS Culture
   FROM Analytics_MonthHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)  
   
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID AND
   MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
   @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND   
   (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name,Page,Culture
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_MonthHits ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_MonthHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath = Page AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture = Culture OR Culture IS NULL)         
   )*100
   
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Page
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture
   
   EXEC Proc_Analytics_Pivot ''month'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 676, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat>y</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><legendtitle>Combinations</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '58879ece-872f-4725-bddb-d7efece15c44', '20110927 13:02:19', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1362, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_HourHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IS NULL OR @MVTestName =MVTestName OR @MVTestName ='''')
   AND (@ConversionName = StatisticsObjectName OR @ConversionName = '''' OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
         
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_HourHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
   EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 677, N'', N'', N'', 600, 500, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy HH:mm}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><legendtitle></legendtitle><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ca75ca54-02d1-41c4-9953-52962e7b1b76', '20110927 13:01:36', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1363, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  Page NVARCHAR(300) COLLATE database_default,
  Culture NVARCHAR(300) COLLATE database_default
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,Page,Culture)  
 
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name,Page,Culture
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime,
    CASE
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name,  
   OM_MVTest.MVTestPage AS Page,OM_MVTest.MVTestCulture AS Culture
   FROM Analytics_HourHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)  
   
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID AND
   MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
   @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND   
   (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name,Page,Culture
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_HourHits ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_HourHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath = Page AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture = Culture OR Culture IS NULL)         
   )*100
   
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Page
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture
   
   EXEC Proc_Analytics_Pivot ''hour'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 677, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat>g</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><legendtitle>Combinations</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', 'a1f83ccb-a457-46fb-bca7-bb8bca342887', '20110927 13:02:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1364, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default 
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name)  
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime, OM_MVTest.MVTestName AS Name
   FROM Analytics_DayHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID
   AND (@MVTestName IS NULL OR @MVTestName =MVTestName OR @MVTestName ='''')
   AND (@ConversionName = StatisticsObjectName OR @ConversionName = '''' OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name
         
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_DayHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath IN (SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture IN (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) OR
    (SELECT MVTestCulture FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID) IS NULL)         
   )*100
   
   UPDATE #AnalyticsTempTable SET Name =
    (SELECT MVTestDisplayName FROM OM_MVTest WHERE MVTestName = Name AND MVTestSiteID = @CMSContextCurrentSiteID)
   
   EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 678, N'', N'', N'', 600, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>true</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY%</seriesitemtooltip><displayitemvalue>False</displayitemvalue><xaxisfont></xaxisfont><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition>{%TestName%}</legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle></customdata>', '129eb58c-9eff-4f9a-be3f-57aa97e3e4ee', '20110927 13:01:36', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1365, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits DECIMAL(10,1),
  Name NVARCHAR(300) COLLATE database_default,
  Page NVARCHAR(300) COLLATE database_default,
  Culture NVARCHAR(300) COLLATE database_default
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime, Hits, Name,Page,Culture)  
 
  SELECT [Date] AS StartTime, CAST (SUM(HitsCount) AS DECIMAL(10,1))  AS Hits, Name,Page,Culture
  FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates LEFT JOIN
  (SELECT HitsCount,HitsStartTime,
    CASE
      WHEN MVTCombinationCustomName  IS NULL OR MVTCombinationCustomName='''' THEN MVTCombinationName
      ELSE MVTCombinationCustomName
    END   
    AS Name,  
   OM_MVTest.MVTestPage AS Page,OM_MVTest.MVTestCulture AS Culture
   FROM Analytics_DayHits
   JOIN  Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   JOIN OM_MVTest ON SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) = OM_MVTest.MVTestName
   INNER JOIN OM_MVTCombination ON   
   MVTCombinationPageTemplateID IN ( SELECT DocumentPageTemplateID FROM View_CMS_Tree_Joined WHERE NodeSiteID = @CMSContextCurrentSiteID
        AND NodeAliasPath IN(SELECT MVTestPage FROM OM_MVTest WHERE MVTestName = @MVTestName AND MVTestSiteID = @CMSContextCurrentSiteID)                        
        AND DocumentCulture = StatisticsObjectCulture)  
   
   WHERE Analytics_Statistics.StatisticsCode LIKE ''mvtconversion;%''AND StatisticsSiteID = @CMSContextCurrentSiteID AND
   MVTCombinationName = (SUBSTRING(StatisticsCode,LEN (''mvtconversion;''+@MVTestName+'';'')+1,LEN (StatisticsCode))) AND
   @MVTestName = SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15) AND   
   (@ConversionName IN('''',StatisticsObjectName) OR @ConversionName IS NULL)
  ) AS x   
  ON x.HitsStartTime = Dates.Date
  GROUP BY [Date], Name,Page,Culture
  
       
   UPDATE #AnalyticsTempTable SET Hits = Hits/
     (
   SELECT CAST (SUM (HitsCount) AS DECIMAL (15,2)) FROM Analytics_Statistics
   JOIN Analytics_DayHits ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID
   WHERE Analytics_Statistics.StatisticsCode = ''pageviews''  
   AND Analytics_DayHits.HitsStartTime = StartTime
   AND Analytics_Statistics.StatisticsObjectID IN
   (SELECT NodeID FROM View_CMS_Tree_Joined WHERE NodeAliasPath = Page AND NodeSiteID = @CMSContextCurrentSiteID)
    AND (StatisticsObjectCulture = Culture OR Culture IS NULL)         
   )*100
   
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Page
   ALTER TABLE #AnalyticsTempTable DROP COLUMN Culture
   
   EXEC Proc_Analytics_Pivot ''day'' 
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 678, N'Conversions rate', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><plotareaborderstyle>Solid</plotareaborderstyle><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>None</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat>{0.0\%}</yaxisformat><rotatey></rotatey><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%yval%}%</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><legendfixedposition></legendfixedposition><displaylegend>True</displaylegend><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><legendtitle>Combinations</legendtitle><scalemin></scalemin><exportenabled>true</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', '3c05bff9-2058-45dc-8290-0cc960f2af13', '20110927 13:02:20', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1366, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
  INSERT INTO #AnalyticsTempTable (StartTime,  Name, Hits) 
 
    SELECT [Date] AS StartTime, X.ConversionDisplayName AS Name,SUM(HitsCount) AS Hits
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates
    LEFT OUTER JOIN
      (SELECT HitsStartTime,ConversionDisplayName,HitsCount FROM Analytics_YearHits
        LEFT JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_YearHits.HitsStatisticsID    
        AND StatisticsCode LIKE ''mvtconversion;%''
        AND (@CombinationName = '''' OR @CombinationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,15)+1,LEN (StatisticsCode)))
        AND @MVTestName =  SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15)    
        
        LEFT JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY ConversionDisplayName,[Date]  
    
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 679, N'Conversions by combinations', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><pieothervalue></pieothervalue><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>yyyy</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser|(user)administrator|(hash)88b2eb4368ba145ee9649cc738535aa65530d54421376e3a00b7b7d9699f343b%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><legendposition>Right</legendposition><xaxislabelfont></xaxislabelfont><rotatex></rotatex><rotatey></rotatey><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}|(user)administrator|(hash)ce9263222ac11e981d052f1ec22a6d10d9891b9899f87b776ca3c6c6ced7c172%}% ({%yval|(user)administrator|(hash)48d99c0166b2601fe3c2bd009b41791d32678c2da9b8a852ca54cb8cbc92a29e%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><scalemin></scalemin><exportenabled>True</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle>Conversions</legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', 'a5707392-ab3e-4ea0-9e3a-fe8fb3547ab1', '20110830 11:45:51', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1367, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
  INSERT INTO #AnalyticsTempTable (StartTime,  Name, Hits) 
 
    SELECT [Date] AS StartTime, X.ConversionDisplayName AS Name,SUM(HitsCount) AS Hits
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates
    LEFT OUTER JOIN
      (SELECT HitsStartTime,ConversionDisplayName,HitsCount FROM Analytics_WeekHits
        LEFT JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_WeekHits.HitsStatisticsID    
        AND StatisticsCode LIKE ''mvtconversion;%''
        AND (@CombinationName = '''' OR @CombinationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,15)+1,LEN (StatisticsCode)))
        AND @MVTestName =  SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15)    
        
        LEFT JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY ConversionDisplayName,[Date]  
    
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 680, N'Conversions by combinations', N'', N'', 600, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><pieothervalue></pieothervalue><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat></seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><legendposition>Right</legendposition><xaxislabelfont></xaxislabelfont><rotatex></rotatex><rotatey></rotatey><yaxistitleposition>Center</yaxistitleposition><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><scalemin></scalemin><exportenabled>True</exportenabled><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><legendtitle>Conversions</legendtitle><xaxistitleposition>Center</xaxistitleposition><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><querynorecordtext>No data found</querynorecordtext><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><piedoughnutradius>60</piedoughnutradius></customdata>', 'f1966474-44a0-4fdb-82b1-3d5138fa7b77', '20110830 11:45:52', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1368, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
  INSERT INTO #AnalyticsTempTable (StartTime,  Name, Hits) 
 
    SELECT [Date] AS StartTime, X.ConversionDisplayName AS Name,SUM(HitsCount) AS Hits
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates
    LEFT OUTER JOIN
      (SELECT HitsStartTime,ConversionDisplayName,HitsCount FROM Analytics_MonthHits
        LEFT JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_MonthHits.HitsStatisticsID    
        AND StatisticsCode LIKE ''mvtconversion;%''
        AND (@CombinationName = '''' OR @CombinationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,15)+1,LEN (StatisticsCode)))
        AND @MVTestName =  SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15)    
        
        LEFT JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY ConversionDisplayName,[Date]  
    
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 681, N'Conversions by combinations', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>y</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', 'f11c4948-788e-4956-b064-bfc0910a8277', '20110830 11:45:52', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1369, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
  INSERT INTO #AnalyticsTempTable (StartTime,  Name, Hits) 
 
    SELECT [Date] AS StartTime, X.ConversionDisplayName AS Name,SUM(HitsCount) AS Hits
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates
    LEFT OUTER JOIN
      (SELECT HitsStartTime,ConversionDisplayName,HitsCount FROM Analytics_DayHits
        LEFT JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_DayHits.HitsStatisticsID    
        AND StatisticsCode LIKE ''mvtconversion;%''
        AND (@CombinationName = '''' OR @CombinationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,15)+1,LEN (StatisticsCode)))
        AND @MVTestName =  SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15)    
        
        LEFT JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY ConversionDisplayName,[Date]  
    
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 682, N'Conversions by combinations', N'', N'', 600, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><seriesitemnameformat>d</seriesitemnameformat><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><legendinside>False</legendinside><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedoughnutradius>60</piedoughnutradius><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth>20</columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><scalemin></scalemin><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatey></rotatey><xaxislabelfont></xaxislabelfont><rotatex></rotatex><seriesitemtooltip>{%ser%}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>True</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Horizontal</barorientation><borderskinstyle>None</borderskinstyle><scalemax>100</scalemax><seriesbordersize>1</seriesbordersize><yaxisusexaxissettings>True</yaxisusexaxissettings><legendtitle>Conversions</legendtitle><xaxistitlecolor>#000000</xaxistitlecolor><exportenabled>True</exportenabled><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><querynorecordtext>No data found</querynorecordtext><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{d}</xaxisformat><chartareabordercolor>#bbbbbb</chartareabordercolor><reverseyaxis>False</reverseyaxis><xaxissort>True</xaxissort><legendposition>Right</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont></xaxisfont><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><yaxisformat></yaxisformat><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><displaylegend>True</displaylegend><chartareaborderstyle>Solid</chartareaborderstyle><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'eea288ee-a623-4f7f-9f04-31ed59c82030', '20110830 11:45:52', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1370, N'graph_detail', N'graph_detail', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
  INSERT INTO #AnalyticsTempTable (StartTime,  Name, Hits) 
 
    SELECT [Date] AS StartTime, X.ConversionDisplayName AS Name,SUM(HitsCount) AS Hits
   FROM {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates
    LEFT OUTER JOIN
      (SELECT HitsStartTime,ConversionDisplayName,HitsCount FROM Analytics_HourHits
        LEFT JOIN   Analytics_Statistics ON Analytics_Statistics.StatisticsID = Analytics_HourHits.HitsStatisticsID    
        AND StatisticsCode LIKE ''mvtconversion;%''
        AND (@CombinationName = '''' OR @CombinationName = SUBSTRING(StatisticsCode, CHARINDEX('';'',StatisticsCode,15)+1,LEN (StatisticsCode)))
        AND @MVTestName =  SUBSTRING(StatisticsCode, 15, CHARINDEX('';'',StatisticsCode,15)-15)    
        
        LEFT JOIN Analytics_Conversion ON StatisticsObjectName = ConversionName AND ConversionSiteID = @CMSContextCurrentSiteID
        WHERE (StatisticsSiteID = @CMSContextCurrentSiteID)
      ) AS X
    ON [Date] = X.HitsStartTime
    GROUP BY ConversionDisplayName,[Date]  
    
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'', 683, N'Conversions by combinations', NULL, NULL, NULL, NULL, NULL, N'<customdata><plotareaborderstyle>Solid</plotareaborderstyle><xaxistitlecolor>#000000</xaxistitlecolor><chartareabordersize>1</chartareabordersize><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxisfont></yaxisfont><seriesitemnameformat>g</seriesitemnameformat><yaxistitleposition>Center</yaxistitleposition><borderskinstyle>None</borderskinstyle><itemvalueformat>{%pval|(todouble)0.0|(format){0:0.0}%}% ({%yval%})</itemvalueformat><legendtitle>Conversions</legendtitle><displaylegend>True</displaylegend><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><plotareabordercolor>#bbbbbb</plotareabordercolor><chartareabordercolor>#bbbbbb</chartareabordercolor><exportenabled>True</exportenabled><seriesitemlink></seriesitemlink><seriesitemtooltip>{%ser%}</seriesitemtooltip><yaxistitlecolor>#000000</yaxistitlecolor><plotareabordersize>1</plotareabordersize><querynorecordtext>No data found</querynorecordtext><titlecolor>#000000</titlecolor><chartareagradient>BottomTop</chartareagradient><yaxislabelfont></yaxislabelfont><chartareaborderstyle>Solid</chartareaborderstyle></customdata>', '6cd5f804-d551-4510-8aaa-622e7da1eedf', '20110830 11:45:52', 1)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1390, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_DayHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''day'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitorsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitorsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitors ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitors END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC (''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 688, N'', N'{$reports_general.label_days$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ccbd1b5b-fda0-46b9-a24b-c2217b28a0a2', '20110830 15:23:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1393, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_HourHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''hour'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitorsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitorsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitors ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitors END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC (''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 690, N'', N'{$reports_general.label_hours$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '5effe755-6fc9-412c-9cf5-52647b382eb6', '20110830 15:23:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1394, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_WeekHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''week'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitorsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitorsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitors ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitors END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC (''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 691, N'', N'{$reports_general.label_weeks$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'b2c79548-3875-4988-818a-9646fb87cbee', '20110830 15:23:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1395, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_MonthHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''month'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitorsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitorsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitors ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitors END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC (''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 692, N'', N'{$reports_general.label_months$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ed29fc66-3e5f-4af5-88e2-e201d5306b01', '20110830 15:23:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1396, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_YearHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''year'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitorsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitorsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalVisitorsPercent = 0  THEN CampaignGoalVisitors ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalVisitors END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC (''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 693, N'', N'{$reports_general.label_years$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '6421e9f9-ea4d-4949-aeb3-360bc4a96bd0', '20110830 15:23:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1397, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,  Hits,Name)            
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 694, N'', N'{$reports_general.label_days$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'a541335c-e70a-47a9-86c1-3c0f71a675ce', '20110830 15:33:48', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1398, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300)
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_HourHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalConversionsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalConversions IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''hour'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversionsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversionsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversions ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversions END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 695, N'', N'{$reports_general.label_hours$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '93f5738a-cd0c-4fc6-a8a9-01dae3cb9b9a', '20110830 15:14:14', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1399, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300)
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_WeekHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalConversionsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalConversions IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''week'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversionsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversionsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversions ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversions END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 696, N'', N'{$reports_general.label_weeks$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ce4fa032-4f07-49a4-ba34-51cd418be840', '20110830 15:14:14', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1400, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300)
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_MonthHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalConversionsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalConversions IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''month'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversionsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversionsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversions ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversions END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 697, N'', N'{$reports_general.label_months$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '7050eda4-7a9a-4450-aa82-6174a9eadff5', '20110830 15:14:14', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1401, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_YearHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalConversionsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalConversions IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 INTO #AnalyticsTempTable  
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''year'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversionsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversionsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversions ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversions END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 698, N'', N'{$reports_general.label_years$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '0fa58d97-a4b9-47ad-a353-048fb0e37663', '20110830 15:51:39', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1402, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_DayHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalValueMin IS NOT NULL OR Analytics_Campaign.CampaignGoalValue IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''day'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValueMin ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValueMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValue ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValue END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 699, N'', N'{$reports_general.label_days$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '24b4b80f-37c9-4134-ace5-bfe8661f25b2', '20110830 15:25:09', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1403, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_HourHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalValueMin IS NOT NULL OR Analytics_Campaign.CampaignGoalValue IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''hour'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValueMin ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValueMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValue ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValue END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 700, N'', N'{$reports_general.label_hours$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '684497c9-6aba-42f0-91be-124fb2dc0c3a', '20110830 15:25:09', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1404, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_WeekHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalValueMin IS NOT NULL OR Analytics_Campaign.CampaignGoalValue IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''week'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValueMin ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValueMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValue ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValue END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 701, N'', N'{$reports_general.label_weeks$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '00f96014-497e-477b-8b40-c46bd355b3a4', '20110830 15:25:09', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1405, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_MonthHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalValueMin IS NOT NULL OR Analytics_Campaign.CampaignGoalValue IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''month'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValueMin ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValueMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValue ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValue END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 702, N'', N'{$reports_general.label_months$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '51678e7b-c403-40c7-aad2-a4bae846a12f', '20110830 15:25:09', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1406, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_YearHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalValueMin IS NOT NULL OR Analytics_Campaign.CampaignGoalValue IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''year'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValueMin ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValueMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalValuePercent = 0  THEN CampaignGoalValue ELSE (CAST (CampaignTotalCost AS DECIMAL (15,0)) /100) * CampaignGoalValue END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 703, N'', N'{$reports_general.label_years$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '747b6038-9a0c-42f2-8da5-f8f373231512', '20110830 15:25:09', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1407, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default,  
  CodeName NVARCHAR(300) COLLATE database_default   
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name,CodeName)           
 SELECT [Date] AS StartTime ,SUM(T1.Hits) AS Hits,T1.Name AS Name,T1.CodeName AS CodeName 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName AS Name,CampaignName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
  GROUP BY T1.Name,[Date],T1.CodeName
  
  UPDATE #AnalyticsTempTable SET Hits = CAST (Hits /  (
  SELECT NULLIF (SUM(HitsCount),0) FROM Analytics_Statistics JOIN Analytics_DayHits ON HitsStatisticsID = StatisticsID 
   WHERE CodeName = StatisticsObjectName AND StatisticsCode =''campaign'' AND StatisticsSiteID = @CMSContextCurrentSiteID  
			AND HitsStartTime <= StartTime)
   AS DECIMAL (15,2))
  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN CodeName  
 
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 704, N'', N'{$reports_general.label_days$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '11208aad-7ec2-4af0-a1ba-8a8cc59ea932', '20110901 13:44:29', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1408, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
  ISNULL(CAST (
  (SELECT NULLIF(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_HourHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalPerVisitorMin IS NOT NULL OR Analytics_Campaign.CampaignGoalPerVisitor IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])
  /
  (SELECT NULLIF(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_HourHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])   
  AS DECIMAL (15,2)), 0) AS ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''hour'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitorMin ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitorMin/100) END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitor ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitor/100) END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 705, N'', N'{$reports_general.label_hours$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8cebeec7-093d-4095-91ca-7a594427a280', '20110901 13:45:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1409, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
  ISNULL(CAST (
  (SELECT NULLIF(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_WeekHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalPerVisitorMin IS NOT NULL OR Analytics_Campaign.CampaignGoalPerVisitor IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])
  /
  (SELECT NULLIF(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_WeekHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])   
  AS DECIMAL (15,2)), 0) AS ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''week'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitorMin ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitorMin/100) END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitor ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitor/100) END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 706, N'', N'{$reports_general.label_weeks$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '2b489feb-6f87-451f-a574-7d8c75af5a39', '20110901 13:45:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1410, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default,  
  CodeName NVARCHAR(300) COLLATE database_default   
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name,CodeName)           
 SELECT [Date] AS StartTime ,SUM(T1.Hits) AS Hits,T1.Name AS Name,T1.CodeName AS CodeName 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName AS Name,CampaignName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
  GROUP BY T1.Name,[Date],T1.CodeName
  
  UPDATE #AnalyticsTempTable SET Hits = CAST (Hits /  (
  SELECT NULLIF (SUM(HitsCount),0) FROM Analytics_Statistics JOIN Analytics_MonthHits ON HitsStatisticsID = StatisticsID 
   WHERE CodeName = StatisticsObjectName AND StatisticsCode =''campaign'' AND StatisticsSiteID = @CMSContextCurrentSiteID  
			AND HitsStartTime <= StartTime)
   AS DECIMAL (15,2))
  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN CodeName  
 
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 707, N'', N'{$reports_general.label_months$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '3764cb3c-a09c-4729-85a2-b94ecb30cc75', '20110901 13:44:29', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1411, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
  ISNULL(CAST (
  (SELECT NULLIF(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_YearHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalPerVisitorMin IS NOT NULL OR Analytics_Campaign.CampaignGoalPerVisitor IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])
  /
  (SELECT NULLIF(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_YearHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])   
  AS DECIMAL (15,2)), 0) AS ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''year'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitorMin ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitorMin/100) END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitor ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitor/100) END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 708, N'', N'{$reports_general.label_years$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '9db3b199-3d15-4509-b01b-6de0a6ada741', '20110901 13:45:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1422, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,  Hits,Name)            
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 717, N'', N'{$reports_general.label_years$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'cfaebd5b-1ee5-43ba-adc4-b753356599d7', '20110830 15:33:48', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1423, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,  Hits,Name)            
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 718, N'', N'{$reports_general.label_months$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '63933bed-1317-4d7d-849d-981a580706f5', '20110830 15:33:48', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1424, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,  Hits,Name)            
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 719, N'', N'{$reports_general.label_weeks$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'c583f40d-98d3-43c5-96b9-dee5a60d783a', '20110830 15:33:48', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1425, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour''); 
 
  INSERT INTO #AnalyticsTempTable (StartTime,  Hits,Name)            
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 720, N'', N'{$reports_general.label_hours$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8c796a85-acf4-43a9-9b05-de5f3d24322e', '20110830 15:33:48', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1426, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300)
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
  INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
SELECT
  [DATE] AS StartTime,
 (SELECT ISNULL(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_DayHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalConversionsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalConversions IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])  as ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''day'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversionsMin ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversionsMin END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalConversionsPercent = 0  THEN CampaignGoalConversions ELSE (CAST (CampaignImpressions AS DECIMAL (15,0)) /100) * CampaignGoalConversions END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 721, N'', N'{$reports_general.label_days$}', N'{$reports_campgoal.label_numcomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '5ca05ef4-6598-4a23-8490-958051b2e983', '20110830 15:14:14', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1430, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''campaign'')AND (StatisticsSiteID = CampaignSiteID)   
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime <= [Date]
    
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 725, N'', N'{$reports_general.label_years$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '9971f8fc-a92a-4651-8c4a-1d0f073b44d8', '20110830 16:08:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1431, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''campaign'')AND (StatisticsSiteID = CampaignSiteID)   
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime <= [Date]
    
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 726, N'', N'{$reports_general.label_weeks$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'eff6e873-d9f2-49bf-ab46-d256e764e8fb', '20110830 16:08:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1432, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''campaign'')AND (StatisticsSiteID = CampaignSiteID)   
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime <= [Date]
    
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 727, N'', N'{$reports_general.label_months$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '37112964-d17a-41b7-a7de-0c7ea1cda261', '20110830 16:08:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1433, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''campaign'')AND (StatisticsSiteID = CampaignSiteID)   
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime <= [Date]
    
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 728, N'', N'{$reports_general.label_hours$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '808b3fd2-63b9-48da-8a9d-583599ffaa4b', '20110830 16:08:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1434, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)       
 SELECT [Date] AS StartTime ,T1.Hits,T1.CampaignDisplayName AS Name FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsCount)AS hits,CampaignDisplayName
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID
  INNER JOIN Analytics_Campaign ON StatisticsObjectName = CampaignName
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode = ''campaign'')AND (StatisticsSiteID = CampaignSiteID)   
  GROUP BY HitsStartTime,CampaignDisplayName,CampaignName) AS T1
  ON T1.StartTime <= [Date]
    
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 729, N'', N'{$reports_general.label_days$}', N'{$reports_campgoal.label_numvisits$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendfixedposition></legendfixedposition><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '85dd5bc4-ed2f-4fd3-a29e-35ff33c28c40', '20110830 16:08:11', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1435, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 730, N'', N'{$reports_general.label_years$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '0be2c292-a1f0-43e8-810e-248a75f32282', '20110830 16:09:21', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1436, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 731, N'', N'{$reports_general.label_weeks$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '8614e41c-bc3c-4db1-98b2-53343136efe2', '20110830 16:09:21', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1437, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_MonthHits ON Analytics_MonthHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''month''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 732, N'', N'{$reports_general.label_months$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '9370b858-8f16-4944-9031-5e7d1fba747b', '20110830 16:09:21', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1438, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 733, N'', N'{$reports_general.label_hours$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '71777f84-25a6-45b1-bd48-f6a1a7852fbc', '20110830 16:09:21', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1439, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable
 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits INT,
  Name NVARCHAR(300) COLLATE database_default  
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name)         
 SELECT [Date] AS StartTime ,T1.Hits,T1.Name AS Name 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName  AS Name
  FROM Analytics_Statistics
  INNER JOIN Analytics_DayHits ON Analytics_DayHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
    
 EXEC Proc_Analytics_Pivot ''day''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 734, N'', N'{$reports_general.label_days$}', N'{$reports_campgoal.label_valuecomversions$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'cf556ba2-6fd0-420d-99da-5887de3937e6', '20110830 16:09:21', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1440, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default,  
  CodeName NVARCHAR(300) COLLATE database_default   
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name,CodeName)           
 SELECT [Date] AS StartTime ,SUM(T1.Hits) AS Hits,T1.Name AS Name,T1.CodeName AS CodeName 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName AS Name,CampaignName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
  GROUP BY T1.Name,[Date],T1.CodeName
  
  UPDATE #AnalyticsTempTable SET Hits = CAST (Hits /  (
  SELECT NULLIF (SUM(HitsCount),0) FROM Analytics_Statistics JOIN Analytics_YearHits ON HitsStatisticsID = StatisticsID 
   WHERE CodeName = StatisticsObjectName AND StatisticsCode =''campaign'' AND StatisticsSiteID = @CMSContextCurrentSiteID  
			AND HitsStartTime <= StartTime)
   AS DECIMAL (15,2))
  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN CodeName  
 
 EXEC Proc_Analytics_Pivot ''year''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 735, N'', N'{$reports_general.label_years$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'bad6d665-42fc-4577-9032-56903b39efbc', '20110901 13:44:29', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1441, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default,  
  CodeName NVARCHAR(300) COLLATE database_default   
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name,CodeName)           
 SELECT [Date] AS StartTime ,SUM(T1.Hits) AS Hits,T1.Name AS Name,T1.CodeName AS CodeName 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''week'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName AS Name,CampaignName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_WeekHits ON Analytics_WeekHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
  GROUP BY T1.Name,[Date],T1.CodeName
  
  UPDATE #AnalyticsTempTable SET Hits = CAST (Hits /  (
  SELECT NULLIF (SUM(HitsCount),0) FROM Analytics_Statistics JOIN Analytics_WeekHits ON HitsStatisticsID = StatisticsID 
   WHERE CodeName = StatisticsObjectName AND StatisticsCode =''campaign'' AND StatisticsSiteID = @CMSContextCurrentSiteID  
			AND HitsStartTime <= StartTime)
   AS DECIMAL (15,2))
  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN CodeName  
 
 EXEC Proc_Analytics_Pivot ''week''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 736, N'', N'{$reports_general.label_weeks$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '2618cbfb-dae9-4deb-9b85-611b5b7b2233', '20110901 13:44:29', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1443, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
  ISNULL(CAST (
  (SELECT NULLIF(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_DayHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalPerVisitorMin IS NOT NULL OR Analytics_Campaign.CampaignGoalPerVisitor IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])
  /
  (SELECT NULLIF(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_DayHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])   
  AS DECIMAL (15,2)), 0) AS ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''day'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitorMin ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitorMin/100) END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitor ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitor/100) END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 738, N'', N'{$reports_general.label_days$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'ac0f798b-19a9-48a8-9c5d-2e375c29447b', '20110901 13:45:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1444, N'graph', N'graph', N'IF ISNULL(@CampaignName, '''') != '''' BEGIN
/* Ensure dates */
EXEC Proc_Analytics_RemoveTempTable
CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default 
);
SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
/*Ensure empty campaign name if is not defined*/  
IF @CampaignName IS NULL
    SET @CampaignName = '''';
/* Get campaign display name */
DECLARE @CampaignDisplayName nvarchar(200)
SET @CampaignDisplayName = (SELECT REPLACE(CampaignDisplayname, '''''''','''''''''''') FROM Analytics_Campaign WHERE @CampaignName = CampaignName AND CampaignSiteID = @CMSContextCurrentSiteID)
  
INSERT INTO #AnalyticsTempTable (StartTime,Hits,Name)  
SELECT
  [DATE] AS StartTime,
  ISNULL(CAST (
  (SELECT NULLIF(SUM(HitsValue) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_MonthHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalPerVisitorMin IS NOT NULL OR Analytics_Campaign.CampaignGoalPerVisitor IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campconversion;'' + @CampaignName) AND HitsStartTime <= [DATE])
  /
  (SELECT NULLIF(SUM(HitsCount) , 0) FROM  Analytics_Statistics
  LEFT JOIN Analytics_MonthHits ON HitsStatisticsID = StatisticsID  
  LEFT JOIN Analytics_Campaign ON CampaignName = [StatisticsObjectName] AND CampaignSiteID = @CMSContextCurrentSiteID
  WHERE ((Analytics_Campaign.CampaignGoalVisitorsMin IS NOT NULL OR Analytics_Campaign.CampaignGoalVisitors IS NOT NULL) AND  StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode = N''campaign'') AND (StatisticsObjectname = @CampaignName OR '''' = @CampaignName) AND  HitsStartTime <= [DATE])   
  AS DECIMAL (15,2)), 0) AS ''Hits''
  , @CampaignDisplayName AS ''Name''
 FROM
 {%DatabaseSchema%}.Func_Analytics_EnsureDates(@FromDate,@ToDate,''month'') AS Dates   
   
         DECLARE @cols nvarchar(max);
         SET @cols = '''';
         
         DECLARE @GoalValue FLOAT
         
         SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitorMin ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitorMin/100) END FROM Analytics_Campaign WHERE  CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
         IF (@GoalValue IS NOT NULL)
             SET @cols = '', '' +  CAST(@GoalValue AS NVARCHAR(200)) + '' AS ''''#@NS;LCFF0000@#{$reports_goals.redflagvalue$}''''''
             
        SET @GoalValue = (SELECT CASE WHEN CampaignGoalPerVisitorPercent = 0  THEN CampaignGoalPerVisitor ELSE (CampaignImpressions/CampaignTotalCost)  * (CampaignGoalPerVisitor/100) END FROM Analytics_Campaign WHERE CampaignSiteID = @CMSContextCurrentSiteID AND @CampaignName = CampaignName);
        IF (@GoalValue IS NOT NULL)
             SET @cols = @cols + '', '' + CAST(@GoalValue AS NVARCHAR(200))+ '' AS ''''#@NS;LC009900@#{$reports_goals.goalvalue$}'''''';
       
        EXEC(''SELECT #AnalyticsTempTable.StartTime, Hits as ''''''+ @CampaignDisplayName +'''''' ''+@cols+'' FROM #AnalyticsTempTable'')
/* Remove Temp table*/
EXEC Proc_Analytics_RemoveTempTable
END', 0, N'line', 739, N'', N'{$reports_general.label_months$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>Bottom</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'c55b2012-e91b-4620-b7d6-6780a109d481', '20110901 13:45:19', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1445, N'graph', N'graph', N'EXEC Proc_Analytics_RemoveTempTable 
 CREATE TABLE #AnalyticsTempTable (
  StartTime DATETIME,  
  Hits DECIMAL(15,2),
  Name NVARCHAR(300) COLLATE database_default,  
  CodeName NVARCHAR(300) COLLATE database_default   
);
 SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''hour'');
  
    INSERT INTO #AnalyticsTempTable (StartTime, Hits,Name,CodeName)           
 SELECT [Date] AS StartTime ,SUM(T1.Hits) AS Hits,T1.Name AS Name,T1.CodeName AS CodeName 
 FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''hour'') AS Dates   
  LEFT JOIN
  (SELECT HitsStartTime AS StartTime,SUM(HitsValue)AS hits,CampaignDisplayName AS Name,CampaignName AS CodeName
  FROM Analytics_Statistics
  INNER JOIN Analytics_HourHits ON Analytics_HourHits.HitsStatisticsID = Analytics_Statistics.StatisticsID  
  INNER JOIN Analytics_Campaign ON SUBSTRING(StatisticsCode, 16, LEN(StatisticsCode)) = CampaignName AND
      CampaignSiteID = StatisticsSiteID
  WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) AND
  (StatisticsCode LIKE ''campconversion;%'')    
  GROUP BY HitsStartTime,CampaignName,CampaignDisplayName  
  ) AS T1
  ON T1.StartTime <= [Date]  
  GROUP BY T1.Name,[Date],T1.CodeName
  
  UPDATE #AnalyticsTempTable SET Hits = CAST (Hits /  (
  SELECT NULLIF (SUM(HitsCount),0) FROM Analytics_Statistics JOIN Analytics_HourHits ON HitsStatisticsID = StatisticsID 
   WHERE CodeName = StatisticsObjectName AND StatisticsCode =''campaign'' AND StatisticsSiteID = @CMSContextCurrentSiteID  
			AND HitsStartTime <= StartTime)
   AS DECIMAL (15,2))
  
 ALTER TABLE #AnalyticsTempTable DROP COLUMN CodeName  
 
 EXEC Proc_Analytics_Pivot ''hour''
 EXEC Proc_Analytics_RemoveTempTable', 0, N'line', 740, N'', N'{$reports_general.label_hours$}', N'{$reports_campgoal.label_valuepervisit$}', 700, 500, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><piedoughnutradius>60</piedoughnutradius><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval></xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendtitle></legendtitle><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>g</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>Bottom</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext></querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '54f85d82-2945-4432-9194-bac452d71839', '20110901 13:44:29', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1465, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''year'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_WeekHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 749, N'', N'{$reports_general.label_weeks$}', N'', 700, 500, 100, N'<customdata><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><enableexport>True</enableexport><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle>0</xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><baroverlay>False</baroverlay><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><columnwidth></columnwidth><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><seriessymbols>None</seriessymbols><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval>1</xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendposition>Right</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue>5</pieothervalue></customdata>', '365a3db1-9dde-45b1-ab4b-00792686ab6f', '20110818 16:18:39', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1466, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''year'');
  SELECT [Date] AS StartTime, COUNT(OrderDate) AS ''Orders''   FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''year'') AS Dates
  LEFT JOIN COM_Order  ON   
    ([Date] <= OrderDate  AND  DATEADD(YEAR,1,[Date]) > OrderDate) AND
    OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 752, N'', N'{$ecommerce.report_year$}', N'{$ecommerce.report_numberoforders$}', 700, 400, 100, N'<customdata><legendbordercolor>#000000</legendbordercolor><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><bardrawingstyle>Cylinder</bardrawingstyle><linedrawinstyle>Line</linedrawinstyle><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><piedrawingdesign>SoftEdge</piedrawingdesign><seriessymbols>Circle</seriessymbols><piedrawingstyle>Pie</piedrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><legendtitle></legendtitle><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendfixedposition></legendfixedposition><scalemin></scalemin><chartareagradient>BottomTop</chartareagradient><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><seriesbordercolor>#000000</seriesbordercolor><xaxisformat>{yyyy}</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><reverseyaxis>False</reverseyaxis><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendposition>None</legendposition><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '44239d96-d33d-42d5-98fa-f971e15b6fb8', '20110815 19:02:41', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1467, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''month'');
  SELECT [Date] AS StartTime, COUNT(OrderDate) AS ''Orders''   FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''month'') AS Dates
  LEFT JOIN COM_Order  ON   
    ([Date] <= OrderDate  AND  DATEADD(MONTH,1,[Date]) > OrderDate) AND
    OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 753, N'', N'{$ecommerce.report_month$}', N'{$ecommerce.report_numberoforders$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{y}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>y</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', 'c4c4d273-3f21-4bc8-b0a4-3e5bb4b7b5ba', '20110815 19:18:10', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1468, N'graph', N'graph', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''day'');
  SELECT [Date] AS StartTime, COUNT(OrderDate) AS ''Orders''   FROM
  {%DatabaseSchema%}.Func_Analytics_EnsureDates (@FromDate,@ToDate,''day'') AS Dates
  LEFT JOIN COM_Order  ON   
    ([Date] <= OrderDate  AND  DATEADD(DAY,1,[Date]) > OrderDate) AND
    OrderSiteID = @CMSContextCurrentSiteID
  GROUP BY [Date]
ORDER BY [Date]', 0, N'line', 754, N'', N'{$ecommerce.report_day$}', N'{$ecommerce.report_numberoforders$}', 700, 400, 100, N'<customdata><pieshowpercentage>False</pieshowpercentage><yaxisfont>Arial;bold;11;;</yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><piedoughnutradius>60</piedoughnutradius><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>Circle</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew>Arial;bold;14;;</titlefontnew><yaxislabelfont></yaxislabelfont><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX{dddd, MMMM d, yyyy}  -  #SER: #VALY</seriesitemtooltip><displayitemvalue>False</displayitemvalue><itemvalueformat></itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><xaxisinterval></xaxisinterval><barorientation>Vertical</barorientation><borderskinstyle>None</borderskinstyle><scalemax></scalemax><seriesbordersize>2</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><legendfixedposition></legendfixedposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#000000</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat>d</xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#000000</titlecolor><xaxisfont>Arial;bold;11;;</xaxisfont><querynorecordtext>No orders found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '2492472b-5da2-47d5-9d11-84c4f332b996', '20110815 19:18:38', NULL)
INSERT INTO [Reporting_ReportGraph] ([GraphID], [GraphName], [GraphDisplayName], [GraphQuery], [GraphQueryIsStoredProcedure], [GraphType], [GraphReportID], [GraphTitle], [GraphXAxisTitle], [GraphYAxisTitle], [GraphWidth], [GraphHeight], [GraphLegendPosition], [GraphSettings], [GraphGUID], [GraphLastModified], [GraphIsHtml]) VALUES (1469, N'graph', N'grap', N'SET @FromDate ={%DatabaseSchema%}.Func_Analytics_DateTrim(@FromDate,''week'');
SET @ToDate ={%DatabaseSchema%}.Func_Analytics_EndDateTrim(@ToDate,''week'');
SELECT StatisticsObjectName , SUM(HitsCount)
   FROM
Analytics_Statistics, Analytics_WeekHits WHERE
 (StatisticsSiteID = @CMSContextCurrentSiteID) AND (StatisticsCode=@CodeName) AND (StatisticsID = HitsStatisticsID)
 AND (HitsStartTime >= @FromDate) AND (HitsEndTime <= @ToDate) GROUP BY StatisticsObjectName ORDER BY SUM(HitsCount) DESC', 0, N'pie', 130, N'', N'', N'', 700, 500, 100, N'<customdata><yaxisfont></yaxisfont><chartareasecbgcolor>#d3dde7</chartareasecbgcolor><yaxistitlecolor>#000000</yaxistitlecolor><xaxisinterval>1</xaxisinterval><plotareagradient>None</plotareagradient><plotareaborderstyle>Solid</plotareaborderstyle><stackedbardrawingstyle>Cylinder</stackedbardrawingstyle><pielabelstyle>Outside</pielabelstyle><seriesitemlink></seriesitemlink><exportenabled>True</exportenabled><seriesprbgcolor></seriesprbgcolor><xaxisangle></xaxisangle><titleposition>Center</titleposition><legendbgcolor></legendbgcolor><seriesbordercolor>#000000</seriesbordercolor><reverseyaxis>False</reverseyaxis><piedrawingdesign>SoftEdge</piedrawingdesign><bardrawingstyle>Cylinder</bardrawingstyle><showmajorgrid>True</showmajorgrid><legendbordersize>1</legendbordersize><seriessymbols>None</seriessymbols><seriessecbgcolor></seriessecbgcolor><titlefontnew></titlefontnew><yaxislabelfont></yaxislabelfont><borderskinstyle>None</borderskinstyle><plotareabordercolor>#bbbbbb</plotareabordercolor><seriesgradient>None</seriesgradient><rotatex></rotatex><yaxisformat></yaxisformat><rotatey></rotatey><seriesitemtooltip>#VALX  -   #PERCENT{P1}</seriesitemtooltip><displayitemvalue>True</displayitemvalue><itemvalueformat>#PERCENT{P1} (#VALY)</itemvalueformat><plotareaprbgcolor></plotareaprbgcolor><tenpowers>False</tenpowers><valuesaspercent>False</valuesaspercent><barorientation>Vertical</barorientation><piedoughnutradius>60</piedoughnutradius><scalemax></scalemax><seriesbordersize>1</seriesbordersize><legendinside>False</legendinside><legendposition>None</legendposition><scalemin></scalemin><xaxistitleposition>Center</xaxistitleposition><plotareabordersize>1</plotareabordersize><showas3d>False</showas3d><xaxistitlecolor>#195EB3</xaxistitlecolor><linedrawinstyle>Line</linedrawinstyle><xaxisformat></xaxisformat><chartareaprbgcolor>#FFFFFF</chartareaprbgcolor><legendtitle></legendtitle><xaxislabelfont></xaxislabelfont><xaxissort>True</xaxissort><legendbordercolor>#000000</legendbordercolor><legendborderstyle>Solid</legendborderstyle><baroverlay>False</baroverlay><titlecolor>#195EB3</titlecolor><xaxisfont></xaxisfont><querynorecordtext>No data found</querynorecordtext><plotareasecbgcolor></plotareasecbgcolor><chartareabordersize>1</chartareabordersize><chartareaborderstyle>Solid</chartareaborderstyle><piedrawingstyle>Pie</piedrawingstyle><chartareagradient>BottomTop</chartareagradient><stackedbarmaxstacked>False</stackedbarmaxstacked><yaxistitleposition>Center</yaxistitleposition><yaxisangle></yaxisangle><yaxisusexaxissettings>True</yaxisusexaxissettings><chartareabordercolor>#bbbbbb</chartareabordercolor><seriesborderstyle>Solid</seriesborderstyle><pieothervalue></pieothervalue></customdata>', '263b6ed4-27fb-4626-a275-59d850b5ee9f', '20110817 13:56:19', NULL)
SET IDENTITY_INSERT [Reporting_ReportGraph] OFF
